strombergnlp/rumoureval_2019
Viewer • Updated • 7.99k • 166 • 5
How to use GateNLP/stance-twitter-xlm-target-oblivious with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="GateNLP/stance-twitter-xlm-target-oblivious") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("GateNLP/stance-twitter-xlm-target-oblivious")
model = AutoModelForSequenceClassification.from_pretrained("GateNLP/stance-twitter-xlm-target-oblivious")A rumour stance classification model, intended to classify the stance of a "reply" post with respect to the post to which it is replying. This is a target oblivious model, i.e. it considers only the reply itself, not the original target post. It is the model underlying the GATE Cloud Target Oblivious Stance Classifier.
For background, see this paper.
This model is fine-tuned from a multilingual base model (cardiffnlp/twitter-xlm-roberta-base), however the fine-tuning data is English-only.
Base model
cardiffnlp/twitter-xlm-roberta-base