andrea-t94/TwitterSentiment140
Preview • Updated • 40
How to use andrea-t94/roberta-fine-tuned-twitter with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="andrea-t94/roberta-fine-tuned-twitter") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("andrea-t94/roberta-fine-tuned-twitter")
model = AutoModelForMaskedLM.from_pretrained("andrea-t94/roberta-fine-tuned-twitter", device_map="auto")This is a RoBERTa-base model finetuned (domain adaptation) on ~2M tweets from Jin 2009 (sentiment140). This is the first step of a two steps approach to finetune for sentiment analysis (ULMFit) This model is suitable for English.
Main charachetistics:
Reference Paper: ULMFit. Reference dataset: Sentiment140 Git Repo: TBD Labels: 0 -> Negative; 1 -> Positive