Instructions to use TransWiC/xlmr-large-all-CLS-P with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TransWiC/xlmr-large-all-CLS-P with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TransWiC/xlmr-large-all-CLS-P")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TransWiC/xlmr-large-all-CLS-P") model = AutoModelForSequenceClassification.from_pretrained("TransWiC/xlmr-large-all-CLS-P", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test_eval_fr.txt from TransWiC/xlmr-large-all-CLS-P: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/TransWiC/xlmr-large-all-CLS-P/resolve/main/test_eval_fr.txt
- Command line
-
hf download hf://TransWiC/xlmr-large-all-CLS-P/test_eval_fr.txt
-
curl -L -o test_eval_fr.txt https://huggingface.co/TransWiC/xlmr-large-all-CLS-P/resolve/main/test_eval_fr.txt
1.34 kB
| Default classification report: | |
| precision recall f1-score support | |
| F 0.8075 0.7720 0.7894 500 | |
| T 0.7816 0.8160 0.7984 500 | |
| accuracy 0.7940 1000 | |
| macro avg 0.7946 0.7940 0.7939 1000 | |
| weighted avg 0.7946 0.7940 0.7939 1000 | |
| ADJ | |
| Accuracy = 0.7336956521739131 | |
| Weighted Recall = 0.7336956521739131 | |
| Weighted Precision = 0.7401544351937506 | |
| Weighted F1 = 0.7343021962264054 | |
| Macro Recall = 0.7370273171895503 | |
| Macro Precision = 0.734869976359338 | |
| Macro F1 = 0.7333096695950543 | |
| ADV | |
| Accuracy = 0.8333333333333334 | |
| Weighted Recall = 0.8333333333333334 | |
| Weighted Precision = 0.8333333333333334 | |
| Weighted F1 = 0.8222222222222223 | |
| Macro Recall = 0.753968253968254 | |
| Macro Precision = 0.8333333333333334 | |
| Macro F1 = 0.7777777777777779 | |
| NOUN | |
| Accuracy = 0.7879377431906615 | |
| Weighted Recall = 0.7879377431906615 | |
| Weighted Precision = 0.793574108409718 | |
| Weighted F1 = 0.7865909746404117 | |
| Macro Recall = 0.7867657080550634 | |
| Macro Precision = 0.7941834451901566 | |
| Macro F1 = 0.7862997814403576 | |
| VERB | |
| Accuracy = 0.8419117647058824 | |
| Weighted Recall = 0.8419117647058824 | |
| Weighted Precision = 0.841672030765168 | |
| Weighted F1 = 0.8412197346037734 | |
| Macro Recall = 0.8350978770333609 | |
| Macro Precision = 0.8410213243546576 | |
| Macro F1 = 0.8374629997637543 | |