Downloads · 30 days
29
4% of all-time downloads
matheusrdgsf/phi-sentiment-analysis-model
phi-sentiment-analysis-model is a text generation model from matheusrdgsf. Use it when you need the model to write or continue text. It is set up for transformers.
This model performs sentiment analysis on sentences, classifying them as either 'positive' or 'negative'. It is trained on the IMDB dataset and has been fine-tuned for this task.
Downloads · 30 days
29
4% of all-time downloads
All-time downloads
684
Public
Parameters
1.4B
2.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.8 GB · 100%
From the Hugging Face model README
This model performs sentiment analysis on sentences, classifying them as either 'positive' or 'negative'. It is trained on the IMDB dataset and has been fine-tuned for this task.
Phi 1.5B Microsoft trained with the IMDB Dataset.
Your task is to classify sentences' sentiment as 'positive' or 'negative'. Your answer should be one word, either 'positive' or 'negative'. Sentence: {text} Answer:
from transformers import pipeline
classifier = pipeline("text-classification", model="matheusrdgsf/phi-sentiment-analysis-model")
result = classifier("I love this movie")
print(result[0]['label']) # Output: 'POSITIVE'