Downloads · 30 days
8
27% of all-time downloads
chawki17/My_Sentiment_Analysis_Model
My_Sentiment_Analysis_Model is a text classification model from chawki17. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of DistilBERT for sentiment analysis. It classifies text into three categories: Positive, Neutral, and Negative.
Downloads · 30 days
8
27% of all-time downloads
All-time downloads
30
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of DistilBERT for sentiment analysis. It classifies text into three categories: Positive, Neutral, and Negative.
This model can be used to classify text as Positive, Neutral, or Negative. It's ideal for applications that require sentiment classification, such as customer feedback analysis, reviews, or social media sentiment monitoring.
This model was fine-tuned on a custom sentiment dataset. Below are its performance metrics :
This model is licensed under the MIT License.
To use this model, you need to install the transformers library. You can do so with the following command:
pip install transformers
from transformers import pipeline
# Load the sentiment-analysis pipeline
sentiment_analysis = pipeline("text-classification", model="chawki17/my_sentiment_model")
# Example text
text = "I love this product!"
# Predict sentiment
result = sentiment_analysis(text)
print(result)
Example output:
[{'label': 'POSITIVE', 'score': 0.98}]
For more details on this model and its performance, visit the model page on Hugging Face.