Downloads · 30 days
21
0% of all-time downloads
eevvgg/Stance-Tw
Stance-Tw is a text classification model from eevvgg. Use it when you need a label for a piece of text. It is set up for transformers.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
21
0% of all-time downloads
All-time downloads
11.9K
Public
Repo size
4 GB
Likes
0
Public
Click a slice to open those files.
.bin1.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of j-hartmann/sentiment-roberta-large-english-3-classes to predict 3 categories of author stance (attack, support, neutral) towards an entity mentioned in the text.
training procedure available in Colab notebook
result of a collaboration with Laboratory of The New Ethos
# Model usage
from transformers import pipeline
model_path = "eevvgg/Stance-Tw"
cls_task = pipeline(task = "text-classification", model = model_path, tokenizer = model_path)#, device=0
sequence = ['his rambling has no clear ideas behind it',
'That has nothing to do with medical care',
"Turns around and shows how qualified she is because of her political career.",
'She has very little to gain by speaking too much']
result = cls_task(sequence)
labels = [i['label'] for i in result]
labels # ['attack', 'neutral', 'support', 'attack']
Model suited for classification of stance in short text. Fine-tuned on a manually-annotated corpus of size 3.2k.
The following hyperparameters were used during training:
Trained for 3 epochs, mini-batch size of 8.
It achieves the following results on the evaluation set:
BibTeX: tba