google/xtreme
Viewer • Updated • 2.77M • 26.4k • 116
How to use transformersbook/xlm-roberta-base-finetuned-panx-fr 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-fr") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-fr")
model = AutoModelForTokenClassification.from_pretrained("transformersbook/xlm-roberta-base-finetuned-panx-fr")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.562 | 1.0 | 191 | 0.3183 | 0.7828 |
| 0.2697 | 2.0 | 382 | 0.2706 | 0.8324 |
| 0.1735 | 3.0 | 573 | 0.2772 | 0.8455 |