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.

Our models are intended for academic use only. If you are not affiliated with an academic institution, please provide a rationale for using our models. Please allow us a few business days to manually review subscriptions.

Log in or Sign Up to review the conditions and access this model content.

xlm-roberta-large-pooled-emotions6-v2

How to use the model

from transformers import AutoTokenizer, pipeline

tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
pipe = pipeline(
    model="poltextlab/xlm-roberta-large-pooled-MORES",
    task="text-classification",
    tokenizer=tokenizer,
    use_fast=False,
    token="<your_hf_read_only_token>"
)

text = "We will place an immediate 6-month halt on the finance driven closure of beds and wards, and set up an independent audit of needs and facilities."
pipe(text)

Gated access

Due to the gated access, you must pass the token parameter when loading the model. In earlier versions of the Transformers package, you may need to use the use_auth_token parameter instead.

Classification Report

Overall Performance:

  • Accuracy: 84%
  • Macro Avg: Precision: 0.81, Recall: 0.79, F1-score: 0.80
  • Weighted Avg: Precision: 0.84, Recall: 0.84, F1-score: 0.84

Per-Class Metrics:

Label Precision Recall F1-score Support
Anger 0.57 0.52 0.54 5439
Fear 0.78 0.79 0.79 5432
Disgust 0.95 0.93 0.94 5432
Sadness 0.87 0.83 0.85 5425
Joy 0.82 0.79 0.81 5152
None of Them 0.87 0.91 0.89 27461

Inference platform

This model is used by the 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 coded corpora (of any domain and language) at poltextlab{at}poltextlab{dot}com or by using the Babel Machine.

Debugging and issues

This architecture uses the sentencepiece tokenizer. In order to use the model before transformers==4.27 you need to install it manually.

If you encounter a RuntimeError when loading the model using the from_pretrained() method, adding ignore_mismatched_sizes=True should solve the iss

Funding

The research was funded by European Union’s Horizon 2020 research and innovation program, “MORES” project (Grant No.: 101132601).

Downloads last month
179
Safetensors
Model size
560M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for poltextlab/xlm-roberta-large-pooled-emotions6-v2

Finetuned
(457)
this model

Spaces using poltextlab/xlm-roberta-large-pooled-emotions6-v2 2