opennyaiorg/InLegalNER
Viewer • Updated • 16.6k • 163 • 9
How to use Amitava25/legal_ai_India_ner_results with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Amitava25/legal_ai_India_ner_results") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Amitava25/legal_ai_India_ner_results")
model = AutoModelForTokenClassification.from_pretrained("Amitava25/legal_ai_India_ner_results")This model is a fine-tuned version of nlpaueb/legal-bert-base-uncased on the opennyaiorg/InLegalNER dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.4633 | 1.0 | 917 | 0.1226 | 0.7624 | 0.8040 | 0.7827 | 0.9642 |
| 0.1039 | 2.0 | 1834 | 0.1077 | 0.7996 | 0.8583 | 0.8279 | 0.9702 |
| 0.0686 | 3.0 | 2751 | 0.1021 | 0.8054 | 0.8695 | 0.8362 | 0.9714 |
| 0.048 | 4.0 | 3668 | 0.1084 | 0.8309 | 0.8706 | 0.8503 | 0.9732 |
| 0.0368 | 5.0 | 4585 | 0.1057 | 0.8370 | 0.8742 | 0.8552 | 0.9741 |
Base model
nlpaueb/legal-bert-base-uncased