opennyaiorg/InLegalNER
Viewer • Updated • 16.6k • 171 • 9
How to use Sidziesama/Legal_NER_Support_Model_distilledbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Sidziesama/Legal_NER_Support_Model_distilledbert") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sidziesama/Legal_NER_Support_Model_distilledbert")
model = AutoModelForTokenClassification.from_pretrained("Sidziesama/Legal_NER_Support_Model_distilledbert")This model is a fine-tuned version of distilbert/distilbert-base-uncased on opennyaiorg/InLegalNER. 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:
| Train Loss | Validation Loss | Train Precision | Train Recall | Train F1 | Train Accuracy | Epoch |
|---|---|---|---|---|---|---|
| 0.4207 | 0.1608 | 0.6623 | 0.7498 | 0.7034 | 0.9557 | 0 |
| 0.1304 | 0.1118 | 0.7580 | 0.8116 | 0.7839 | 0.9668 | 1 |
| 0.0891 | 0.1012 | 0.7698 | 0.8525 | 0.8090 | 0.9701 | 2 |
| 0.0699 | 0.0976 | 0.7933 | 0.8507 | 0.8210 | 0.9713 | 3 |
| 0.0582 | 0.0980 | 0.7952 | 0.8552 | 0.8241 | 0.9716 | 4 |
Base model
distilbert/distilbert-base-uncased