Heiko Hotz commited on
Commit
b894b58
1 Parent(s): 471639a

initial commit

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. data/questions_short.txt +21 -21
app.py CHANGED
@@ -133,6 +133,7 @@ if st.button('Analyze'):
133
  with st.spinner(text='Analysis in progress...'):
134
  predictions = run_prediction([question], paragraph, 'akdeniz27/roberta-base-cuad',
135
  n_best_size=10)
 
136
  if predictions['0'] == "":
137
  answer = 'No answer found in document'
138
  else:
@@ -146,7 +147,7 @@ if st.button('Analyze'):
146
  for i in range(int(number_results)):
147
  answer += f"Answer {i+1}: {data['0'][i]['text']} -- \n"
148
  answer += f"Probability: {round(data['0'][i]['probability']*100,1)}%\n\n"
149
- st.success(answer)
150
- # st.success("Successfully processed contract!")
151
  else:
152
  st.write("Unable to call model, please select question and contract")
 
133
  with st.spinner(text='Analysis in progress...'):
134
  predictions = run_prediction([question], paragraph, 'akdeniz27/roberta-base-cuad',
135
  n_best_size=10)
136
+ answer = ""
137
  if predictions['0'] == "":
138
  answer = 'No answer found in document'
139
  else:
 
147
  for i in range(int(number_results)):
148
  answer += f"Answer {i+1}: {data['0'][i]['text']} -- \n"
149
  answer += f"Probability: {round(data['0'][i]['probability']*100,1)}%\n\n"
150
+ st.success(answer)
151
+
152
  else:
153
  st.write("Unable to call model, please select question and contract")
data/questions_short.txt CHANGED
@@ -6,36 +6,36 @@ Question 5: What date will the contract's initial term expire?
6
  Question 6: What is the renewal term after the initial term expires?
7
  Question 7: What is the notice period required to terminate renewal?
8
  Question 8: Which state/country's law governs the interpretation of the contract?
9
- Question 9: Is there a clause that if a third party gets better terms in the contract, the buyer under the contract shall be entitled to those better terms?
10
- Question 10: What is the restriction on the ability of a party to compete with the counterparty or operate in a certain geography or business or technology sector? 
11
- Question 11: Is there an exclusive dealing  commitment with the counterparty?
12
- Question 12: Is a party restricted from contracting or soliciting customers or partners of the counterparty, whether during the contract or after the contract ends (or both)?
13
  Question 13: What are the competitive restriction exceptions in the contract?
14
- Question 14: Is there a restriction on a party’s soliciting or hiring employees and/or contractors from the  counterparty, whether during the contract or after the contract ends (or both)?
15
  Question 15: Is there a requirement on a party not to disparage the counterparty?
16
- Question 16: Can a party terminate this  contract without cause (solely by giving a notice and allowing a waiting  period to expire)?
17
  Question 17: What are the terms granting one party a right of first refusal, right of first offer, or right of first negotiation?
18
  Question 18: What are the terms about right of termination?
19
  Question 19: Is consent or notice required of a party if the contract is assigned to a third party?
20
- Question 20: Is one party required to share revenue or profit with the counterparty for any technology, goods, or services?
21
- Question 21: Is there a restriction on the  ability of a party to raise or reduce prices of technology, goods, or  services provided?
22
- Question 22: Is there a minimum order size or minimum amount or units per-time period that one party must buy from the counterparty under the contract?
23
  Question 23: Is there a fee increase or consent requirement, etc. if one party’s use of the product/services exceeds certain threshold?
24
- Question 24: What are the terms about intellectual property created  by one party?
25
  Question 25: Is there any clause providing for joint or shared ownership of intellectual property between the parties to the contract?
26
  Question 26: Does the contract contain a license granted by one party to its counterparty?
27
  Question 27: Does the contract limit the ability of a party to transfer the license being granted to a third party?
28
- Question 28: Does the contract contain a license grant by affiliates of the licensor or that includes intellectual property of affiliates of the licensor? 
29
  Question 29: Does the contract contain a license grant to a licensee (incl. sublicensor) and the affiliates of such licensee/sublicensor?
30
  Question 30: Is there a clause granting one party an “enterprise,” “all you can eat” or unlimited usage license?
31
- Question 31: Does the contract contain a  license grant that is irrevocable or perpetual?
32
- Question 32: Is one party required to deposit its source code into escrow with a third party, which can be released to the counterparty upon the occurrence of certain events (bankruptcy,  insolvency, etc.)?
33
- Question 33: Is a party subject to obligations after the termination or expiration of a contract, including any post-termination transition, payment, transfer of IP, wind-down, last-buy, or similar commitments?
34
- Question 34: Does a party have the right to  audit the books, records, or physical locations of the counterparty to ensure compliance with the contract?
35
- Question 35: Is a party’s liability uncapped upon the breach of its obligation in the contract? This also includes uncap liability for a particular type of breach such as IP infringement or breach of confidentiality obligation.
36
- Question 36: Does the contract include a cap on liability upon the breach of a party’s obligation? This includes time limitation for the counterparty to bring claims or maximum amount for recovery.
37
- Question 37: Does the contract contain a clause that would award either party liquidated damages for breach or a fee upon the termination of a contract (termination fee)?
38
- Question 38: What is the duration of any  warranty against defects or errors in technology, products, or services  provided under the contract?
39
  Question 39: Is there a requirement for insurance that must be maintained by one party for the benefit of the counterparty?
40
- Question 40: Is a party restricted from contesting the validity of the counterparty’s ownership of intellectual property or otherwise bringing a claim against the counterparty for matters unrelated to the contract?
41
- Question 41: Is there a non-contracting party who is a beneficiary to some or all of the clauses in the contract and therefore can enforce its rights against a contracting party?
 
6
  Question 6: What is the renewal term after the initial term expires?
7
  Question 7: What is the notice period required to terminate renewal?
8
  Question 8: Which state/country's law governs the interpretation of the contract?
9
+ Question 9: What happens if a third party gets better terms in the contract?
10
+ Question 10: What is the restriction on the ability of a party to compete with the counterparty?
11
+ Question 11: Is there an exclusive dealing commitment with the counterparty?
12
+ Question 12: Is a party restricted from contracting or soliciting customers?
13
  Question 13: What are the competitive restriction exceptions in the contract?
14
+ Question 14: Is there a restriction on a party’s soliciting or hiring employees?
15
  Question 15: Is there a requirement on a party not to disparage the counterparty?
16
+ Question 16: Can a party terminate this contract without cause?
17
  Question 17: What are the terms granting one party a right of first refusal, right of first offer, or right of first negotiation?
18
  Question 18: What are the terms about right of termination?
19
  Question 19: Is consent or notice required of a party if the contract is assigned to a third party?
20
+ Question 20: Is one party required to share revenue or profit with the counterparty for any technology, goods, or services?
21
+ Question 21: Is there a restriction on the ability of a party to raise or reduce prices of technology, goods, or services provided?
22
+ Question 22: Is there a minimum order size or minimum amount or units per-time period?
23
  Question 23: Is there a fee increase or consent requirement, etc. if one party’s use of the product/services exceeds certain threshold?
24
+ Question 24: What are the terms about intellectual property created by one party?
25
  Question 25: Is there any clause providing for joint or shared ownership of intellectual property between the parties to the contract?
26
  Question 26: Does the contract contain a license granted by one party to its counterparty?
27
  Question 27: Does the contract limit the ability of a party to transfer the license being granted to a third party?
28
+ Question 28: Does the contract contain a license grant by affiliates of the licensor or that includes intellectual property of affiliates of the licensor?
29
  Question 29: Does the contract contain a license grant to a licensee (incl. sublicensor) and the affiliates of such licensee/sublicensor?
30
  Question 30: Is there a clause granting one party an “enterprise,” “all you can eat” or unlimited usage license?
31
+ Question 31: Does the contract contain a license grant that is irrevocable or perpetual?
32
+ Question 32: Is one party required to deposit its source code into escrow with a third party?
33
+ Question 33: Is a party subject to obligations after the termination or expiration of a contract?
34
+ Question 34: Does a party have the right to audit the books, records, or physical locations of the counterparty to ensure compliance with the contract?
35
+ Question 35: Is a party’s liability uncapped upon the breach of its obligation in the contract?
36
+ Question 36: Does the contract include a cap on liability upon the breach of a party’s obligation?
37
+ Question 37: Does the contract contain a clause that would award either party liquidated damages for breach or a fee upon the termination of a contract?
38
+ Question 38: What is the duration of any warranty against defects or errors in technology, products, or services provided under the contract?
39
  Question 39: Is there a requirement for insurance that must be maintained by one party for the benefit of the counterparty?
40
+ Question 40: Is a party restricted from contesting the validity of the counterparty’s ownership of intellectual property?
41
+ Question 41: Is there a non-contracting party who is a beneficiary to some or all of the clauses in the contract?