opennyaiorg/InLegalNER
Viewer • Updated • 16.6k • 217 • 9
How to use Sidziesama/Legal_NER_Support_Model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Sidziesama/Legal_NER_Support_Model") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sidziesama/Legal_NER_Support_Model")
model = AutoModelForTokenClassification.from_pretrained("Sidziesama/Legal_NER_Support_Model")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sidziesama/Legal_NER_Support_Model")
model = AutoModelForTokenClassification.from_pretrained("Sidziesama/Legal_NER_Support_Model")This model is a fine-tuned version of nlpaueb/legal-bert-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.3771 | 0.1228 | 0.8400 | 0.8644 | 0.8520 | 0.9655 | 0 |
| 0.1172 | 0.0962 | 0.8715 | 0.9001 | 0.8856 | 0.9725 | 1 |
| 0.0801 | 0.0895 | 0.8805 | 0.9112 | 0.8956 | 0.9745 | 2 |
| 0.0597 | 0.0881 | 0.8840 | 0.9112 | 0.8974 | 0.9751 | 3 |
| 0.0501 | 0.0883 | 0.8848 | 0.9160 | 0.9001 | 0.9757 | 4 |
Base model
nlpaueb/legal-bert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Sidziesama/Legal_NER_Support_Model")