airesearch/generated_reviews_enth
Updated β’ 342 β’ 8
How to use juliensimon/reviews-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="juliensimon/reviews-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("juliensimon/reviews-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("juliensimon/reviews-sentiment-analysis")A DistilBERT model fine-tuned for sentiment analysis on English-language product reviews.
Video walkthrough: ML Hyperproductivity with Hugging Face β part 1: AutoML with AutoNLP
| Detail | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Task | Sentiment analysis (text classification) |
| Language | English |
| Dataset | generated_reviews_enth |
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="juliensimon/reviews-sentiment-analysis")
classifier("This product is amazing, best purchase I've made!")
code subfolder.