Downloads · 30 days
9
5% of all-time downloads
samandar1105/inlegalbert-legal-ner
inlegalbert-legal-ner is a token classification model from samandar1105. Use it when you need labels on individual words, such as names.
Extracts 14 legal entity types (COURT, JUDGE, LAWYER, PETITIONER, RESPONDENT, CASENUMBER, STATUTE, PROVISION, PRECEDENT, WITNESS, OTHERPERSON, ORG, GPE, DATE) from legal/court documents. Base model: law-ai/InLegalBERT…
Downloads · 30 days
9
5% of all-time downloads
All-time downloads
172
Public
Parameters
109M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
Extracts 14 legal entity types (COURT, JUDGE, LAWYER, PETITIONER, RESPONDENT,
CASE_NUMBER, STATUTE, PROVISION, PRECEDENT, WITNESS, OTHER_PERSON, ORG, GPE, DATE)
from legal/court documents. Base model: law-ai/InLegalBERT (pretrained on 5.4M
Indian legal documents). Fine-tuned on opennyaiorg/InLegalNER.
| Metric | Score |
|---|---|
| Precision | 0.8308 |
| Recall | 0.8763 |
| F1 | 0.8530 |
from transformers import pipeline
ner = pipeline("token-classification", model="samandar1105/inlegalbert-legal-ner", aggregation_strategy="simple")
ner("Justice Sharma of the Bombay High Court delivered judgment on 14 March 2019.")
This model is part of a Legal NER + RAG document-intelligence pipeline (NER extraction + retrieval-augmented Q&A). See the companion Space for the full app.