Skip to content

Commit 83b97d8

Browse files
committed
Added testing data to classify sentences with ADR contract terms.
Refactoring.
1 parent caee3be commit 83b97d8

File tree

3 files changed

+41
-6
lines changed

3 files changed

+41
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using Quantum NLP for Intelligent Understanding of ADR Contract Terms
22

3-
In this project, we use the quantum NLP library **Lambeq** to process sentences describing contract terms for American depository receipts.
3+
In this project, we use the quantum NLP library **Lambeq** to process sentences describing contract terms for American depository receipts (ADRs).
44

55
### How it works
66

data/classify_adr_test_data.txt

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
0 woman prepares tasty dinner .
2+
0 man cooks tasty sauce .
3+
0 man prepares program .
4+
0 skillful woman runs application .
5+
0 person bakes meal .
6+
0 organization that fleet destroy .
7+
0 person that teacher teach .
8+
0 device that air enter .
9+
0 document that student submit .
10+
0 document that government sell .
11+
0 mammal that police have .
12+
0 material that police use ..
13+
0 device that show time .
14+
0 vehicle that replace horse .
15+
0 scientist that discover species .
16+
0 scientist that discover star .
17+
0 vehicle that destroy vessel .
18+
0 Michael walks to zoo .
19+
0 water enters phone .
20+
0 fire burns papers .
21+
1 Commence-Date is Mar 02 2015 .
22+
1 Contract is effective May 11 2016 .
23+
1 Effective End-Date is Jun 20 2017 .
24+
1 Contract will terminate Jul 25 2018 .
25+
1 Contract terminates 3 years after Commencement-Date .
26+
1 Contract terminates after 1 year .
27+
1 Advance payment is equal to 12500 .
28+
1 Advance amount is 3000 .
29+
1 Fixed amount is equal to 9000 .
30+
1 Upfront amount is 5000 .
31+
1 Net-Revenue is 5 percent of Dividend .
32+
1 Net-Revenue is 19 percent of Scrip .
33+
1 Program-Maintenance-Fee is initial 1500 .
34+
1 Program-Maintenance-Fee is initial 100 of Program Revenues .
35+
1 Contract renews 30 days before termination .

data/classify_adr_train_data.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
0 person bakes dinner .
4646
0 man cooks tasty meal .
4747
0 skillful person cooks meal .
48-
0 person skis down the slope .
49-
0 Megan runs to the aquarium .
50-
0 John walks in the park .
51-
1 Program-Maintenance-Fee is the initial 10000 .
48+
0 person skis down slope .
49+
0 Megan runs to aquarium .
50+
0 John walks in park .
51+
1 Program-Maintenance-Fee is initial 10000 .
5252
1 Commencement-Date is Jan 15 2020 .
5353
1 Effective End-Date is Jan 14 2022 .
5454
1 Initial ADS-Amount is equal to 6000000 .
@@ -63,7 +63,7 @@
6363
1 Fixed amount is equal to 35000 .
6464
1 Upfront payment is equal to 95100 .
6565
1 Net-Revenue is 95 percent of Issuance .
66-
1 Program-Maintenance-Fee is the initial 30000 of Program Revenues .
66+
1 Program-Maintenance-Fee is initial 30000 of Program Revenues .
6767
1 Effective Start-Date is Feb 06 2019 .
6868
1 Net-Revenue is 20 percent of Issuance and Cancellation .
6969
1 Net-Revenue is 65 percent of TA Fee .

0 commit comments

Comments
 (0)