Downloads · 30 days
203
1% of all-time downloads
AnkitAI/reviews-roberta-base-sentiment-analysis
reviews-roberta-base-sentiment-analysis is a text classification model from AnkitAI. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
203
1% of all-time downloads
All-time downloads
19.7K
Public
Parameters
125M
997 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors499 MB · 50%
From the Hugging Face model README
This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-sentiment-latest on the Amazon Reviews dataset for sentiment analysis.
AnkitAI/reviews-roberta-base-sentiment-analysiscardiffnlp/twitter-roberta-base-sentiment-latestThe model was trained using the following parameters:
You can use this model directly with the Hugging Face transformers library:
from transformers import RobertaForSequenceClassification, RobertaTokenizer
model_name = "AnkitAI/reviews-roberta-base-sentiment-analysis"
model = RobertaForSequenceClassification.from_pretrained(model_name)
tokenizer = RobertaTokenizer.from_pretrained(model_name)
# Example usage
inputs = tokenizer("This product is great!", return_tensors="pt")
outputs = model(**inputs) # 1 for positive, 0 for negative
If this model is useful in your work, you can support independent research:
<p align="left"> <a href="https://www.buymeacoffee.com/AnkitAI" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me a Coffee" height="60" width="217" /></a> </p>This model is licensed under the MIT License.
More models: ankitaglawe.com