Downloads · 30 days
31
0% of all-time downloads
eevvgg/StanceBERTa
StanceBERTa 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.
This model is a fine-tuned version of distilroberta-base model to predict 3 categories of stance (negative, positive, neutral) towards some entity mentioned in the text. Fine-tuned on a larger and more balanced data s…
Downloads · 30 days
31
0% of all-time downloads
All-time downloads
481K
Public
Repo size
2.6 GB
Likes
1
Public
Click a slice to open those files.
.bin329 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of distilroberta-base model to predict 3 categories of stance (negative, positive, neutral) towards some entity mentioned in the text. Fine-tuned on a larger and more balanced data sample compared with the previous version eevvgg/Stance-Tw.
Developed by: Ewelina Gajewska
Model type: RoBERTa for stance classification
Language(s) (NLP): English social media data from Twitter and Reddit
Finetuned from model: distilroberta-base
from transformers import pipeline
model_path = "eevvgg/StanceBERTa"
cls_task = pipeline(task = "text-classification", model = model_path, tokenizer = model_path)#, device=0
sequence = ["user The fact is that she still doesn’t change her ways and still stays non environmental friendly"
"user The criteria for these awards dont seem to be very high."]
result = cls_task(sequence)
Model suited for classification of stance in short text. Fine-tuned on a balanced corpus of size 5.6k, partially semi-annotated. *Suitable for fine-tuning on hate/offensive language detection.
Normalization of user mentions and hyperlinks to "@user" and "http" tokens, respectively.
evaluation on 15% of data.
accuracy: 0.785
macro avg:
weighted avg:
BibTeX: tba