google/xtreme
Viewer • Updated • 2.77M • 27.2k • 116
How to use transformersbook/xlm-roberta-base-finetuned-panx-en 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-en") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-en")
model = AutoModelForTokenClassification.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-en")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 |
|---|---|---|---|---|
| 1.026 | 1.0 | 50 | 0.5734 | 0.4901 |
| 0.4913 | 2.0 | 100 | 0.3870 | 0.6696 |
| 0.3734 | 3.0 | 150 | 0.3676 | 0.6982 |