fancyzhx/amazon_polarity
Viewer • Updated • 4M • 18.2k • 48
How to use BaxterAI/SentimentClassifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="BaxterAI/SentimentClassifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("BaxterAI/SentimentClassifier")
model = AutoModelForSequenceClassification.from_pretrained("BaxterAI/SentimentClassifier")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("BaxterAI/SentimentClassifier")
model = AutoModelForSequenceClassification.from_pretrained("BaxterAI/SentimentClassifier")This model is a fine-tuned version of distilbert-base-uncased on the amazon_polarity dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BaxterAI/SentimentClassifier")