google/xtreme
Viewer • Updated • 2.77M • 21.7k • 116
How to use transformersbook/xlm-roberta-base-finetuned-panx-it with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="transformersbook/xlm-roberta-base-finetuned-panx-it") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-it")
model = AutoModelForTokenClassification.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-it")This model is a fine-tuned version of xlm-roberta-base on the PAN-X dataset. The model is trained in Chapter 4: Multilingual Named Entity Recognition in the NLP with Transformers book. You can find the full code in the accompanying Github repository.
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 | F1 |
|---|---|---|---|---|
| 0.7594 | 1.0 | 70 | 0.3402 | 0.7467 |
| 0.2942 | 2.0 | 140 | 0.2555 | 0.7971 |
| 0.1814 | 3.0 | 210 | 0.2445 | 0.8215 |