eriktks/conll2003
Updated • 26.7k • 177
How to use AmrataYadav/bert-base-uncased-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="AmrataYadav/bert-base-uncased-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("AmrataYadav/bert-base-uncased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("AmrataYadav/bert-base-uncased-finetuned-ner", device_map="auto")This model is a fine-tuned version of bert-base-uncased 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 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 439 | 0.0697 | 0.8960 | 0.9187 | 0.9072 | 0.9799 |
| 0.185 | 2.0 | 878 | 0.0607 | 0.9227 | 0.9384 | 0.9304 | 0.9837 |
| 0.0471 | 3.0 | 1317 | 0.0560 | 0.9341 | 0.9433 | 0.9387 | 0.9858 |
| 0.0263 | 4.0 | 1756 | 0.0610 | 0.9300 | 0.9447 | 0.9373 | 0.9853 |
| 0.0161 | 5.0 | 2195 | 0.0629 | 0.9361 | 0.9516 | 0.9437 | 0.9859 |
| 0.0112 | 6.0 | 2634 | 0.0676 | 0.9372 | 0.9490 | 0.9431 | 0.9860 |
| 0.0076 | 7.0 | 3073 | 0.0697 | 0.9348 | 0.9487 | 0.9417 | 0.9859 |
| 0.0056 | 8.0 | 3512 | 0.0706 | 0.9364 | 0.9497 | 0.9430 | 0.9862 |
| 0.0056 | 9.0 | 3951 | 0.0719 | 0.9381 | 0.9497 | 0.9439 | 0.9864 |
| 0.0038 | 10.0 | 4390 | 0.0727 | 0.9399 | 0.9513 | 0.9456 | 0.9865 |
Base model
google-bert/bert-base-uncased