Downloads · 30 days
12
3% of all-time downloads
Aad456334/Sentiment_Analyser
Sentiment_Analyser is a text classification model from Aad456334. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model card provides details about a sentiment analysis model trained on a dataset containing posts related to primates. The model predicts sentiment labels for textual data using transformer-based architectures.
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
349
Public
Parameters
67M
407 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model card provides details about a sentiment analysis model trained on a dataset containing posts related to primates. The model predicts sentiment labels for textual data using transformer-based architectures.
The sentiment analysis model aims to classify text data into sentiment categories such as positive, negative, or neutral. It utilizes transformer-based architectures for sequence classification.
The model can be directly used for sentiment analysis tasks, particularly on textual data related to primates.
The model can be fine-tuned for specific downstream tasks or integrated into larger applications requiring sentiment analysis functionality.
The model's predictions may reflect biases present in the training data, including any biases related to primates or sentiment labeling.
Users should be cautious when interpreting the model's predictions, considering potential biases and limitations. Fine-tuning on domain-specific data or applying post-processing techniques may help mitigate biases and improve performance.
# Example code for using the sentiment analysis model
# 1. Load the model and tokenizer
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sbcBI/sentiment_analysis_model")
model = AutoModelForSequenceClassification.from_pretrained("sbcBI/sentiment_analysis_model")
# 2. Tokenize input text
text = "Sample text for sentiment analysis"
encoded_input = tokenizer(text, return_tensors='pt')
# 3. Perform inference
output = model(**encoded_input)
predicted_label = output.logits.argmax().item()
# 4. Interpret prediction
sentiment_labels = ['Negative', 'Neutral', 'Positive']
print("Predicted Sentiment:", sentiment_labels[predicted_label])
The training data consists of posts related to primates, annotated with sentiment labels.
Text data underwent preprocessing steps including lowercase conversion, punctuation removal, tokenization, stopword removal, and stemming.
Carbon emissions were not directly measured for model training. However, users should consider the environmental impact of training and deploying machine learning models, especially on large-scale infrastructure.
The model architecture is based on transformer-based architectures, specifically designed for sequence classification tasks such as sentiment analysis.
AADARSH KUMAR SINGH