how can I know the labels meaning?

#2
by fermaf - opened

This is my code:
model_name="poltextlab/xlm-roberta-large-spanish-manifesto-cap"
model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-large')
classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
respuesta=classifier("Estoy feliz de ver como la Paz mundial puede ser πŸ€— posible")
print(respuesta)

This is my output:
[{'label': 'LABEL_17', 'score': 0.9259922504425049}]

what is Label_17?, where can I find the documentation about it?

The label in the output corresponds to the respective major topic coding in the Comparative Agendas Project: https://www.comparativeagendas.net/pages/master-codebook

17 is the code for Technology.

thank you!

fermaf changed discussion status to closed

Sign up or log in to comment