Twitter-roBERTa-base for Sentiment Analysis
Labels: 0 -> Negative; 1 -> Neutral; 2 -> Positive
Example Pipeline
from transformers import pipeline
sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
sentiment_task("Covid cases are increasing fast!")
[{'label': 'Negative', 'score': 0.7236}]
- Downloads last month
- 2