Instructions to use poltextlab/illframes-climate-v5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poltextlab/illframes-climate-v5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="poltextlab/illframes-climate-v5")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("poltextlab/illframes-climate-v5") model = AutoModelForSequenceClassification.from_pretrained("poltextlab/illframes-climate-v5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
You need to agree to share your contact information to access this model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This model is not accepting new access requests at the moment. Access is still available for our accepted users, which requires the gated access setting to stay active. For inquiries or custom project requests, please contact us at miklos[dot]sebok[at]poltextlab[dot]com.
Log in or Sign Up to review the conditions and access this model content.
illframes-climate-v5
How to use the model
from transformers import AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
pipe = pipeline(
model="poltextlab/illframes-climate-v5",
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: 72%
- Macro Avg: Precision: 0.45, Recall: 0.29, F1-score: 0.31
- Weighted Avg: Precision: 0.65, Recall: 0.72, F1-score: 0.64
Per-Class Metrics:
| Label | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| 710: Threatening economic growth | 0.63 | 0.3 | 0.41 | 63 |
| 720: Threatening national sovereignty | 1 | 0.15 | 0.26 | 20 |
| 721: Climate conspiracy | 0 | 0 | 0 | 15 |
| 722: Scientific scepticism and denial | 0 | 0 | 0 | 19 |
| 723: Climate movement bashing | 0.33 | 0.28 | 0.3 | 18 |
| 724: Other polluters as the real problem | 0.77 | 0.8 | 0.78 | 25 |
| 730: Threatening energy security | 0.6 | 0.09 | 0.16 | 33 |
| 740: Threatening way of life | 0 | 0 | 0 | 11 |
| 799: None of them | 0.73 | 0.99 | 0.84 | 356 |
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.
- Downloads last month
- 51
Model tree for poltextlab/illframes-climate-v5
Base model
FacebookAI/xlm-roberta-largeEvaluation results
- Accuracyself-reported72%
- F1-Scoreself-reported64%