lambdavi commited on
Commit
e34ee50
•
1 Parent(s): e5849c6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -51
README.md CHANGED
@@ -6,58 +6,68 @@ tags:
6
  - ner
7
  - named-entity-recognition
8
  - generated_from_span_marker_trainer
 
9
  metrics:
10
  - precision
11
  - recall
12
  - f1
13
  widget:
14
- - text: The seven-judge Constitution Bench of the Supreme Court in SBP and Co. (supra)
15
- while reversing earlier five-judge Constitution Bench judgment in Konkan Railway
16
- Corpn. Ltd. vs. Rani Construction (P) Ltd., (2002) 2 SCC 388 held that the power
17
- exercised by the Chief Justice of the High Court or the Chief justice of India
18
- under Section 11(6) of the Arbitration Act is not an administrative power but
19
- is a judicial power.
20
- - text: 'In The High Court Of Judicature At Patna Criminal Writ Jurisdiction Case
21
- No.160 of 2021 Arising Out of Ps. Case No.-58 Year-2020 Thana- Bakhari District-
22
- Begusarai ====================================================== Hanif Ur Rahman,
23
- son of Azhar Rahman, Resident of C-39, East Nizamuddin, New Delhi....... Petitioner
24
- Versus 1. The State of Bihar (through Chief Secretary, Govt. of Bihar) Main Secretariat,
25
- Patna - 800015. 2. Meena Khatoon, wife of Mastan @ Noor Mohammad, Resident of
26
- Village- Mansurpur Chaksikandar, P.S.- Bidupur, District- Vaishali (Bihar) 3.
27
- The Bihar Police, through Standing Counsel. 4. Child Welfare Committee, through
28
- Chairperson, Chanakyanagar, Mahmadpur, Begusarai. 5. The Superintendent, Alpawas
29
- Grih, Nirala Nagar, Behind G.D. College, Ratanpur, Begusarai....... Respondents
30
- ====================================================== Appearance:For the Petitioner:Ms.
31
- Kriti Awasthi, Advocate Mr. Sambhav Gupta, Advocate Mr. Navnit Kumar, Advocate
32
- Mr. Shyam Kumar, Advocate For the Respondents:Mr.Nadim Seraj, G.P.5 For the Resp.
33
- No. 2:Ms. Archana Sinha, Advocate For the Resp. No. 4:Mr. Prabhu Narain Sharma,
34
- Advocate ====================================================== Coram: Honourable
35
- Mr. Justice Rajeev Ranjan Prasad C.A.V. Judgment'
36
- - text: '1 R In The High Court Of Karnataka At Bengaluru Dated This The 19Th Day Of
37
- February, 2021 Before The Hon''Ble Mr. Justice H.P. Sandesh Criminal Appeal No.176/2011
38
- Between: Sri G.L. Jagadish, S/O Sri G.N. Lingappa, Aged About 52 Years, Residing
39
- At No.29, 3Rd Main, Basaveshwara Housing Society Layout, Vijayanagar, Near Bts
40
- Depot, Bengaluru-40....Appellant [By Sri H. Ramachandra, Advocate For Sri H.R.
41
- Anantha Krishna Murthy And Associates - (Through V.C.)] And: Smt. Vasantha Kokila,
42
- W/O Late N.R. Somashekhar, Aged About 58 Years, Residing At No.322, 8Th Main,
43
- 3Rd Stage, 4Th Block, Basaveshwaranagar, Bengaluru....Respondent [By Sri K.R.
44
- Lakshminarayana Rao, Advocate] This Criminal Appeal Is Filed Under Section 378(4)
45
- Of Cr.P.C. Praying To Set Aside The Order Dated 06.07.2010 Passed By The P.O.
46
- Ftc-Ii, Bengaluru In Crl.A. No.470/2009 And Confirming The Order Dated 27.05.2009
47
- Passed By The Xxii Acmm And Xxiv Ascj, Bengaluru In C.C.No.17229/2004 Convicting
48
- The Respondent/Accused For The Offence Punishable Under Section 138 Of Ni Act.
49
- 2 This Criminal Appeal Having Been Heard And Reserved For Orders On 06.02.2021
50
- This Day, The Court Pronounced The Following: Judgment'
51
- - text: The petition was filed through Sh. Vijay Pahwa, General Power of Attorney
52
- and it was asserted in the petition under Section 13-B of the Rent Act that 1
53
- of 23 50% share of the demised premises had been purchased by the landlord from
54
- Sh. Vinod Malhotra vide sale deed No.4226 registered on 20.12.2007 with Sub Registrar,
55
- Chandigarh.
56
- - text: Mr. Arun Bharadwaj, ld. CGSC, appearing for the Union of India, has Signature
57
- Not Verified Digitally Signed By:PRATHIBA M SINGH Signing Date:09.10.2020 16:15
58
- Digitally Signed By:SINDHU KRISHNAKUMAR Signing Date:09.10.2020 16:50:02 reiterated
59
- the submissions made by Dr. Singhvi and has further submitted that this petition
60
- ought to be heard with the OA No. 291/138/2020 pending before the CAT.
 
 
 
 
 
 
 
 
 
61
  pipeline_tag: token-classification
62
  model-index:
63
  - name: SpanMarker
@@ -66,7 +76,7 @@ model-index:
66
  type: token-classification
67
  name: Named Entity Recognition
68
  dataset:
69
- name: Unknown
70
  type: unknown
71
  split: eval
72
  metrics:
@@ -83,7 +93,7 @@ model-index:
83
 
84
  # SpanMarker
85
 
86
- This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that can be used for Named Entity Recognition.
87
 
88
  ## Model Details
89
 
@@ -124,10 +134,13 @@ This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that ca
124
  ### Direct Use for Inference
125
 
126
  ```python
127
- from span_marker import SpanMarkerModel
128
 
129
  # Download from the 🤗 Hub
130
  model = SpanMarkerModel.from_pretrained("lambdavi/span-marker-luke-legal")
 
 
 
131
  # Run inference
132
  entities = model.predict("The petition was filed through Sh. Vijay Pahwa, General Power of Attorney and it was asserted in the petition under Section 13-B of the Rent Act that 1 of 23 50% share of the demised premises had been purchased by the landlord from Sh. Vinod Malhotra vide sale deed No.4226 registered on 20.12.2007 with Sub Registrar, Chandigarh.")
133
  ```
@@ -138,10 +151,12 @@ You can finetune this model on your own dataset.
138
  <details><summary>Click to expand</summary>
139
 
140
  ```python
141
- from span_marker import SpanMarkerModel, Trainer
142
 
143
  # Download from the 🤗 Hub
144
  model = SpanMarkerModel.from_pretrained("lambdavi/span-marker-luke-legal")
 
 
145
 
146
  # Specify a Dataset with "tokens" and "ner_tag" columns
147
  dataset = load_dataset("conll2003") # For example CoNLL2003
@@ -204,6 +219,11 @@ trainer.save_model("lambdavi/span-marker-luke-legal-finetuned")
204
  | 4.0 | 7350 | 0.0061 | 0.8941 | 0.9083 | 0.9011 | 0.9811 |
205
  | 4.9986 | 9185 | 0.0064 | 0.9090 | 0.9110 | 0.9100 | 0.9824 |
206
 
 
 
 
 
 
207
  ### Framework Versions
208
  - Python: 3.10.12
209
  - SpanMarker: 1.5.0
 
6
  - ner
7
  - named-entity-recognition
8
  - generated_from_span_marker_trainer
9
+ - legal
10
  metrics:
11
  - precision
12
  - recall
13
  - f1
14
  widget:
15
+ - text: >-
16
+ The seven-judge Constitution Bench of the Supreme Court in SBP and Co.
17
+ (supra) while reversing earlier five-judge Constitution Bench judgment in
18
+ Konkan Railway Corpn. Ltd. vs. Rani Construction (P) Ltd., (2002) 2 SCC 388
19
+ held that the power exercised by the Chief Justice of the High Court or the
20
+ Chief justice of India under Section 11(6) of the Arbitration Act is not an
21
+ administrative power but is a judicial power.
22
+ - text: >-
23
+ In The High Court Of Judicature At Patna Criminal Writ Jurisdiction Case
24
+ No.160 of 2021 Arising Out of Ps. Case No.-58 Year-2020 Thana- Bakhari
25
+ District- Begusarai ======================================================
26
+ Hanif Ur Rahman, son of Azhar Rahman, Resident of C-39, East Nizamuddin, New
27
+ Delhi....... Petitioner Versus 1. The State of Bihar (through Chief
28
+ Secretary, Govt. of Bihar) Main Secretariat, Patna - 800015. 2. Meena
29
+ Khatoon, wife of Mastan @ Noor Mohammad, Resident of Village- Mansurpur
30
+ Chaksikandar, P.S.- Bidupur, District- Vaishali (Bihar) 3. The Bihar Police,
31
+ through Standing Counsel. 4. Child Welfare Committee, through Chairperson,
32
+ Chanakyanagar, Mahmadpur, Begusarai. 5. The Superintendent, Alpawas Grih,
33
+ Nirala Nagar, Behind G.D. College, Ratanpur, Begusarai....... Respondents
34
+ ====================================================== Appearance:For the
35
+ Petitioner:Ms. Kriti Awasthi, Advocate Mr. Sambhav Gupta, Advocate Mr.
36
+ Navnit Kumar, Advocate Mr. Shyam Kumar, Advocate For the
37
+ Respondents:Mr.Nadim Seraj, G.P.5 For the Resp. No. 2:Ms. Archana Sinha,
38
+ Advocate For the Resp. No. 4:Mr. Prabhu Narain Sharma, Advocate
39
+ ====================================================== Coram: Honourable Mr.
40
+ Justice Rajeev Ranjan Prasad C.A.V. Judgment
41
+ - text: >-
42
+ 1 R In The High Court Of Karnataka At Bengaluru Dated This The 19Th Day Of
43
+ February, 2021 Before The Hon'Ble Mr. Justice H.P. Sandesh Criminal Appeal
44
+ No.176/2011 Between: Sri G.L. Jagadish, S/O Sri G.N. Lingappa, Aged About 52
45
+ Years, Residing At No.29, 3Rd Main, Basaveshwara Housing Society Layout,
46
+ Vijayanagar, Near Bts Depot, Bengaluru-40....Appellant [By Sri H.
47
+ Ramachandra, Advocate For Sri H.R. Anantha Krishna Murthy And Associates -
48
+ (Through V.C.)] And: Smt. Vasantha Kokila, W/O Late N.R. Somashekhar, Aged
49
+ About 58 Years, Residing At No.322, 8Th Main, 3Rd Stage, 4Th Block,
50
+ Basaveshwaranagar, Bengaluru....Respondent [By Sri K.R. Lakshminarayana Rao,
51
+ Advocate] This Criminal Appeal Is Filed Under Section 378(4) Of Cr.P.C.
52
+ Praying To Set Aside The Order Dated 06.07.2010 Passed By The P.O. Ftc-Ii,
53
+ Bengaluru In Crl.A. No.470/2009 And Confirming The Order Dated 27.05.2009
54
+ Passed By The Xxii Acmm And Xxiv Ascj, Bengaluru In C.C.No.17229/2004
55
+ Convicting The Respondent/Accused For The Offence Punishable Under Section
56
+ 138 Of Ni Act. 2 This Criminal Appeal Having Been Heard And Reserved For
57
+ Orders On 06.02.2021 This Day, The Court Pronounced The Following: Judgment
58
+ - text: >-
59
+ The petition was filed through Sh. Vijay Pahwa, General Power of Attorney
60
+ and it was asserted in the petition under Section 13-B of the Rent Act that
61
+ 1 of 23 50% share of the demised premises had been purchased by the landlord
62
+ from Sh. Vinod Malhotra vide sale deed No.4226 registered on 20.12.2007 with
63
+ Sub Registrar, Chandigarh.
64
+ - text: >-
65
+ Mr. Arun Bharadwaj, ld. CGSC, appearing for the Union of India, has
66
+ Signature Not Verified Digitally Signed By:PRATHIBA M SINGH Signing
67
+ Date:09.10.2020 16:15 Digitally Signed By:SINDHU KRISHNAKUMAR Signing
68
+ Date:09.10.2020 16:50:02 reiterated the submissions made by Dr. Singhvi and
69
+ has further submitted that this petition ought to be heard with the OA No.
70
+ 291/138/2020 pending before the CAT.
71
  pipeline_tag: token-classification
72
  model-index:
73
  - name: SpanMarker
 
76
  type: token-classification
77
  name: Named Entity Recognition
78
  dataset:
79
+ name: legal_ner
80
  type: unknown
81
  split: eval
82
  metrics:
 
93
 
94
  # SpanMarker
95
 
96
+ This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that can be used for Named Entity Recognition. It was trained on the Legal NER Indian Justice dataset.
97
 
98
  ## Model Details
99
 
 
134
  ### Direct Use for Inference
135
 
136
  ```python
137
+ from span_marker import SpanMarkerModel, SpanMarkerTokenizer
138
 
139
  # Download from the 🤗 Hub
140
  model = SpanMarkerModel.from_pretrained("lambdavi/span-marker-luke-legal")
141
+ tokenizer = SpanMarkerTokenizer.from_pretrained("roberta-base", config=model.tokenizer.config)
142
+ model.set_tokenizer(tokenizer)
143
+
144
  # Run inference
145
  entities = model.predict("The petition was filed through Sh. Vijay Pahwa, General Power of Attorney and it was asserted in the petition under Section 13-B of the Rent Act that 1 of 23 50% share of the demised premises had been purchased by the landlord from Sh. Vinod Malhotra vide sale deed No.4226 registered on 20.12.2007 with Sub Registrar, Chandigarh.")
146
  ```
 
151
  <details><summary>Click to expand</summary>
152
 
153
  ```python
154
+ from span_marker import SpanMarkerModel, Trainer, SpanMarkerTokenizer
155
 
156
  # Download from the 🤗 Hub
157
  model = SpanMarkerModel.from_pretrained("lambdavi/span-marker-luke-legal")
158
+ tokenizer = SpanMarkerTokenizer.from_pretrained("roberta-base", config=model.tokenizer.config)
159
+ model.set_tokenizer(tokenizer)
160
 
161
  # Specify a Dataset with "tokens" and "ner_tag" columns
162
  dataset = load_dataset("conll2003") # For example CoNLL2003
 
219
  | 4.0 | 7350 | 0.0061 | 0.8941 | 0.9083 | 0.9011 | 0.9811 |
220
  | 4.9986 | 9185 | 0.0064 | 0.9090 | 0.9110 | 0.9100 | 0.9824 |
221
 
222
+ eval/f1-exact 0.92369
223
+ eval/f1-partial 0.93652
224
+ eval/f1-strict 0.90998
225
+ eval/f1-type-match 0.92767
226
+
227
  ### Framework Versions
228
  - Python: 3.10.12
229
  - SpanMarker: 1.5.0