Instructions to use poltextlab/xlm-roberta-large-i5-v6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poltextlab/xlm-roberta-large-i5-v6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="poltextlab/xlm-roberta-large-i5-v6")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("poltextlab/xlm-roberta-large-i5-v6") model = AutoModelForSequenceClassification.from_pretrained("poltextlab/xlm-roberta-large-i5-v6", device_map="auto") - Notebooks
- Google Colab
- Kaggle
xlm-roberta-large-i5-v6
How to use the model
from transformers import AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
pipe = pipeline(
model="poltextlab/xlm-roberta-large-i5-v6",
task="text-classification",
tokenizer=tokenizer,
use_fast=False,
token="<your_hf_read_only_token>"
)
text = "<text_to_classify>"
pipe(text)
Classification Report
Overall Performance:
- Accuracy: N/A
- Macro Avg: Precision: 0.50, Recall: 0.46, F1-score: 0.45
- Weighted Avg: Precision: 0.50, Recall: 0.47, F1-score: 0.46
Per-Class Metrics:
| Label | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| (1301) Welfare chauvinism | 0.44 | 0.8 | 0.57 | 10 |
| (1302) Security hazard | 1 | 0.82 | 0.9 | 11 |
| (1303) Immorality | 0.39 | 0.61 | 0.48 | 18 |
| (1304) Economic burden | 0.09 | 0.08 | 0.09 | 12 |
| (1305) Economic determinism | 1 | 0.5 | 0.67 | 12 |
| (1306) Workfare | 0.55 | 0.38 | 0.44 | 16 |
| (1399) None of them | 0 | 0 | 0 | 9 |
Inference platform
This model is used by the CAP Babel Machine, an open-source and free natural language processing tool, designed to simplify and speed up projects for comparative research.
Cooperation
Model performance can be significantly improved by extending our training sets. We appreciate every submission of CAP-coded corpora (of any domain and language) at poltextlab{at}poltextlab{dot}com or by using the CAP Babel Machine.
Debugging and issues
This architecture uses the sentencepiece tokenizer. In order to run the model before transformers==4.27 you need to install it manually.
Funding
Project no. 151324 has been implemented with the support provided by the Ministry of Science and Technology of Hungary from the National Research, Development and Innovation Fund, financed under the EXCELLENCE_24 funding scheme.
- Downloads last month
- 33
Model tree for poltextlab/xlm-roberta-large-i5-v6
Base model
FacebookAI/xlm-roberta-largeEvaluation results
- Accuracyself-reportedN/A
- F1-Scoreself-reported46%