Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,12 @@ model-index:
|
|
22 |
- type: F1-Score
|
23 |
value: 90.709
|
24 |
name: Test F1-Score
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
---
|
26 |
Indian Legal Named Entity Recognition: Identifying relevant entities in an Indian legal document
|
27 |
|
@@ -37,15 +43,57 @@ Indian Legal Named Entity Recognition: Identifying relevant entities in an India
|
|
37 |
| **License** | `MIT` |
|
38 |
| **Author** | [Aman Tiwari](https://www.linkedin.com/in/amant555/) |
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
### Label Scheme
|
41 |
|
42 |
<details>
|
43 |
|
44 |
<summary>View label scheme (14 labels for 1 components)</summary>
|
45 |
|
46 |
-
|
|
47 |
| --- | --- |
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
</details>
|
51 |
|
@@ -56,3 +104,10 @@ Indian Legal Named Entity Recognition: Identifying relevant entities in an India
|
|
56 |
| **F1-Score** | **90.709** |
|
57 |
| `Precision` | 91.474 |
|
58 |
| `Recall` | 89.956 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
- type: F1-Score
|
23 |
value: 90.709
|
24 |
name: Test F1-Score
|
25 |
+
|
26 |
+
---
|
27 |
+
# To Update
|
28 |
+
|
29 |
+
[AUTHORS] "[PAPER NAME]". [PAPER DETAILS] [PAPER LINK]
|
30 |
+
|
31 |
---
|
32 |
Indian Legal Named Entity Recognition: Identifying relevant entities in an Indian legal document
|
33 |
|
|
|
43 |
| **License** | `MIT` |
|
44 |
| **Author** | [Aman Tiwari](https://www.linkedin.com/in/amant555/) |
|
45 |
|
46 |
+
## Load Pretrained Model
|
47 |
+
|
48 |
+
Install the model using pip
|
49 |
+
|
50 |
+
```sh
|
51 |
+
pip install https://huggingface.co/opennyaiorg/en_legal_ner_trf/resolve/main/en_legal_ner_trf-any-py3-none-any.whl
|
52 |
+
```
|
53 |
+
|
54 |
+
Using pretrained NER model
|
55 |
+
|
56 |
+
```python
|
57 |
+
# Using spacy.load().
|
58 |
+
import spacy
|
59 |
+
nlp = spacy.load("en_legal_ner_trf")
|
60 |
+
text = "Section 319 Cr.P.C. contemplates a situation where the evidence adduced by the prosecution for Respondent No.3-G. Sambiah on 20th June 1984"
|
61 |
+
doc = nlp(text)
|
62 |
+
|
63 |
+
# Print indentified entites
|
64 |
+
for ent in doc.ents:
|
65 |
+
print(ent,ent.label_)
|
66 |
+
|
67 |
+
##OUTPUT
|
68 |
+
#Section 319 PROVISION
|
69 |
+
#Cr.P.C. STATUTE
|
70 |
+
#G. Sambiah RESPONDENT
|
71 |
+
#20th June 1984 DATE
|
72 |
+
```
|
73 |
+
|
74 |
+
|
75 |
### Label Scheme
|
76 |
|
77 |
<details>
|
78 |
|
79 |
<summary>View label scheme (14 labels for 1 components)</summary>
|
80 |
|
81 |
+
| ENTITY | BELONGS TO |
|
82 |
| --- | --- |
|
83 |
+
| `LAWYER` | PREAMBLE |
|
84 |
+
| `COURT` | PREAMBLE, JUDGEMENT |
|
85 |
+
| `JUDGE` | PREAMBLE, JUDGEMENT |
|
86 |
+
| `PETITIONER` | PREAMBLE, JUDGEMENT |
|
87 |
+
| `RESPONDENT` | PREAMBLE, JUDGEMENT |
|
88 |
+
| `CASE_NUMBER` | JUDGEMENT |
|
89 |
+
| `GPE` | JUDGEMENT |
|
90 |
+
| `DATE` | JUDGEMENT |
|
91 |
+
| `ORG` | JUDGEMENT |
|
92 |
+
| `STATUTE` | JUDGEMENT |
|
93 |
+
| `WITNESS` | JUDGEMENT |
|
94 |
+
| `PRECEDENT` | JUDGEMENT |
|
95 |
+
| `PROVISION` | JUDGEMENT |
|
96 |
+
| `OTHER_PERSON` | JUDGEMENT |
|
97 |
|
98 |
</details>
|
99 |
|
|
|
104 |
| **F1-Score** | **90.709** |
|
105 |
| `Precision` | 91.474 |
|
106 |
| `Recall` | 89.956 |
|
107 |
+
|
108 |
+
|
109 |
+
## Author - Publication
|
110 |
+
|
111 |
+
```
|
112 |
+
[CITATION DETAILS]
|
113 |
+
```
|