scholarly360 commited on
Commit
818925c
1 Parent(s): 8b40651

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -27
README.md CHANGED
@@ -77,33 +77,24 @@ Users (both direct and downstream) should be made aware of the risks, biases and
77
 
78
  Use the code below to get started with the model.
79
 
80
- from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
81
- model_name = "scholarly360/contracts-extraction-flan-t5-base"
82
- model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
83
- tokenizer = AutoTokenizer.from_pretrained(model_name)
84
-
85
- ##1
86
- prompt = """
87
- what kind of clause is "Neither Party shall be liable to the other for any abatement of Charges, delay or non-performance of its obligations under the Services Agreement arising from any cause or causes beyond its reasonable control (a "Force Majeure Event") including, without limitation"
88
- """
89
- inputs = tokenizer(prompt, return_tensors="pt")
90
- outputs = model.generate(**inputs)
91
- print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
92
- ##2
93
- prompt = """
94
- what are the multiple parties in "This COLLABORATION AGREEMENT (“Agreement”) dated November 14, 2002, is made by and between ZZZ, INC., a Delaware corporation, and having its principal office at 901 Gateway Boulevard, South San Francisco, California 9999 (ZZZZ), and MAJJO GROUP LIMITED, a United Kingdom corporation, and having its principal office at Majjo House, Berkeley Avenue, Greenford, Middlesex, UB6 0NN, United Kingdom (MAJJ). Both may be referred to as a “Party” or together, the “Parties”."
95
- """
96
- inputs = tokenizer(prompt, return_tensors="pt")
97
- outputs = model.generate(**inputs)
98
- print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
99
- ##3
100
- prompt = """
101
- what is agreement date in "This COLLABORATION AGREEMENT (“Agreement”) dated November 14, 2002, is made by and between ZZZ, INC., a Delaware corporation"
102
- """
103
-
104
- inputs = tokenizer(prompt, return_tensors="pt")
105
- outputs = model.generate(**inputs)
106
- print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
107
 
108
  [More Information Needed]
109
 
 
77
 
78
  Use the code below to get started with the model.
79
 
80
+ ```python
81
+ >>> from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
82
+ >>> model_name = "scholarly360/contracts-extraction-flan-t5-base"
83
+ >>> model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
84
+ >>> tokenizer = AutoTokenizer.from_pretrained(model_name)
85
+ >>>
86
+ >>> prompt = """ what kind of clause is "Neither Party shall be liable to the other for any abatement of Charges, delay or non-performance of its obligations under the Services Agreement arising from any cause or causes beyond its reasonable control (a "Force Majeure Event") including, without limitation" """
87
+ >>> inputs = tokenizer(prompt, return_tensors="pt")
88
+ >>> outputs = model.generate(**inputs)
89
+ >>> print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
90
+ >>>
91
+ >>> prompt = """ what is agreement date in "This COLLABORATION AGREEMENT (“Agreement”) dated November 14, 2002, is made by and between ZZZ, INC., a Delaware corporation""""
92
+ >>> inputs = tokenizer(prompt, return_tensors="pt")
93
+ >>> outputs = model.generate(**inputs)
94
+ >>> print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
95
+
96
+ ```
97
+
 
 
 
 
 
 
 
 
 
98
 
99
  [More Information Needed]
100