eriktks/conll2003
Updated • 35k • 167
How to use ShakhzoDavronov/ner-token-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="ShakhzoDavronov/ner-token-classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("ShakhzoDavronov/ner-token-classification")
model = AutoModelForTokenClassification.from_pretrained("ShakhzoDavronov/ner-token-classification")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("ShakhzoDavronov/ner-token-classification")
model = AutoModelForTokenClassification.from_pretrained("ShakhzoDavronov/ner-token-classification")This model is a fine-tuned version of bert-base-cased on the conll2003 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.0772 | 1.0 | 1756 | 0.0648 | 0.9013 | 0.9362 | 0.9184 | 0.9823 |
| 0.0345 | 2.0 | 3512 | 0.0656 | 0.9348 | 0.9485 | 0.9416 | 0.9855 |
| 0.0216 | 3.0 | 5268 | 0.0628 | 0.9369 | 0.9517 | 0.9442 | 0.9866 |
Base model
google-bert/bert-base-cased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ShakhzoDavronov/ner-token-classification")