Instructions to use cardiffnlp/twitter-roberta-base-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Add tokenzier.json
#14
by rcshubhadeep - opened
It is showing an error at the moment when trying to deploy in the inference endpoints because the tokenizer.json file is absent. Please consider adding that. This is a straight forward model and I do not feel like writing custom code to deploy it