strombergnlp/rumoureval_2019
Viewer • Updated • 7.99k • 199 • 5
How to use GateNLP/stance-bertweet-target-aware with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="GateNLP/stance-bertweet-target-aware") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("GateNLP/stance-bertweet-target-aware")
model = AutoModelForSequenceClassification.from_pretrained("GateNLP/stance-bertweet-target-aware")One of a pair of models intended to classify the stance of a "reply" post with respect to the post to which it is replying. This is a target aware model, i.e. it considers both the reply and the target post to which it is replying. GateNLP/stance-bertweet-target-oblivious is the complementary "target-oblivious" model, the two models are used in combination in the GATE Cloud English Stance Classifier.
For background, see this paper.
Base model
vinai/bertweet-base