eriktks/conll2003
Updated • 37.1k • 167
How to use Gladiator/albert-large-v2_ner_conll2003 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Gladiator/albert-large-v2_ner_conll2003") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Gladiator/albert-large-v2_ner_conll2003")
model = AutoModelForTokenClassification.from_pretrained("Gladiator/albert-large-v2_ner_conll2003")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Gladiator/albert-large-v2_ner_conll2003")
model = AutoModelForTokenClassification.from_pretrained("Gladiator/albert-large-v2_ner_conll2003")This model is a fine-tuned version of albert-large-v2 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.2034 | 1.0 | 878 | 0.0653 | 0.9114 | 0.9278 | 0.9195 | 0.9837 |
| 0.0561 | 2.0 | 1756 | 0.0602 | 0.9316 | 0.9280 | 0.9298 | 0.9845 |
| 0.0303 | 3.0 | 2634 | 0.0536 | 0.9380 | 0.9424 | 0.9402 | 0.9872 |
| 0.0177 | 4.0 | 3512 | 0.0535 | 0.9393 | 0.9456 | 0.9425 | 0.9877 |
| 0.011 | 5.0 | 4390 | 0.0584 | 0.9396 | 0.9451 | 0.9424 | 0.9875 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Gladiator/albert-large-v2_ner_conll2003")