This is a beginner-friendly sentiment analysis model uploaded to the Hugging Face Hub.
This model predicts whether an English sentence is POSITIVE or NEGATIVE.
1from transformers import pipeline
2
3pipe = pipeline(
4 "sentiment-analysis",
5 model="alijawad252525/my-sentiment-model"
6)
7
8print(pipe("Great movie!"))
Input: I love machine learning.
Output: POSITIVE
Input: The service was terrible.
Output: NEGATIVE