Update README.md
Browse files
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:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
is
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
Advocate
|
35 |
-
Mr.
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
This
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|
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
|