Downloads · 30 days
8
4% of all-time downloads
FlavioRubensOttaviani/Sentiment-analysis-for-firm-monitoring-online
Sentiment-analysis-for-firm-monitoring-online is a text classification model from FlavioRubensOttaviani. Use it when you need a label for a piece of text. The card lists the license as mit.
This is a cardiffnlp/twitter-roberta-base-sentiment-latest model that has been re-trained (fine-tuned) for binary sentiment classification (Positive vs. Negative).
Downloads · 30 days
8
4% of all-time downloads
All-time downloads
184
Public
Parameters
125M
499 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This is a cardiffnlp/twitter-roberta-base-sentiment-latest model that has been re-trained (fine-tuned) for binary sentiment classification (Positive vs. Negative).
The original model was trained for 3 classes (Positive, Negative, Neutral). This model was specialized using the Sentiment140 dataset to recognize only Positive or Negative sentiment, making it ideal for corporate reputation monitoring.
The GitHub repository with all the training code and MLOps pipeline can be found here: https://github.com/Luffyconqueredhaki/Sentiment-analysis-for-firm-monitoring-online
This repository contains a complete MLOps project for social media sentiment analysis (e.g., Twitter/X). The project manages the entire model lifecycle: from training and fine-tuning a Transformer model (RoBERTa) to a CI/CD pipeline for automated testing and continuous monitoring.
This project analyzes social media sentiment to monitor online reputation. The core of the system is a Transformer (RoBERTa) model (cardiffnlp/twitter-roberta-base-sentiment-latest), specialized in understanding the nuances of social language.
The base model, which classifies into 3 classes (Positive, Negative, Neutral), is re-trained (fine-tuned) on the Sentiment140 dataset to further specialize it and adapt it to only 2 classes (Positive/Negative).
The entire model lifecycle is managed through a complete MLOps flow, including training, automated testing (CI/CD), and continuous performance monitoring.
The .ipynb file in the notebooks/ folder is the brain of the Machine Learning project. It's where all the experimentation was done.
cardiffnlp/twitter-roberta-base-sentiment-latest model and re-trains it on our dataset, moving from 3 to 2 labels (Positive/Negative).The model was trained and evaluated on a sample of 10,000 tweets.
(The exact metric values can be found in the training notebook. Insert your results here)
| Metric | Value (on Test Set) |
|---|---|
| Accuracy | ~85% |
| F1-Score (Weighted) | ~85% |
Questo è un modello cardiffnlp/twitter-roberta-base-sentiment-latest che è stato ri-addestrato (fine-tuned) per la classificazione binaria del sentiment (Positivo vs. Negativo).
Il modello originale era addestrato per 3 classi (Positivo, Negativo, Neutrale). Questo modello è stato specializzato usando il dataset Sentiment140 per riconoscere solo sentiment Positivo o Negativo, rendendolo ideale per il monitoraggio della reputazione aziendale.
Il repository GitHub con tutto il codice di training e la pipeline MLOps si trova qui: https://github.com/Luffyconqueredhaki/Sentiment-analysis-for-firm-monitoring-online
Questo repository contiene un progetto completo di MLOps per l'analisi del sentiment dei social media (es. Twitter/X). Il progetto gestisce l'intero ciclo di vita del modello: dall'addestramento e fine-tuning di un modello Transformer (RoBERTa) fino alla pipeline CI/CD per i test automatici e al monitoring continuo.
Questo progetto analizza il sentiment sui social media per monitorare la reputazione online. Il cuore del sistema è un modello Transformer (RoBERTa) (cardiffnlp/twitter-roberta-base-sentiment-latest), specializzato nel comprendere le sfumature del linguaggio social.
Il modello base, che classifica in 3 classi (Positivo, Neutro, Negativo), viene ri-addestrato (fine-tuning) sul dataset Sentiment140 per specializzarlo ulteriormente e adattarlo a 2 sole classi (Positivo/Negativo).
L'intero ciclo di vita del modello è gestito tramite un flusso MLOps completo, che include l'addestramento, il test automatico (CI/CD) e il monitoraggio continuo delle performance.
Il file .ipynb nella cartella notebooks/ è il cervello del progetto di Machine Learning. È dove è stata fatta tutta la sperimentazione.
cardiffnlp/twitter-roberta-base-sentiment-latest e lo ri-addestra sul nostro dataset, passando da 3 a 2 etichette (Positivo/Negativo).Il modello è stato addestrato e valutato su un campione di 10.000 tweet.
(I valori esatti delle metriche si trovano nel notebook di training. Inserisci qui i tuoi risultati)
| Metrica | Valore (sul Test Set) |
|---|---|
| Accuracy | ~85% |
| F1-Score (Weighted) | ~85% |
Puoi usare questo modello direttamente con la pipeline di Transformers:
from transformers import pipeline
# Carica il modello dalla repository di HuggingFace
sentiment_pipeline = pipeline(
"sentiment-analysis",
model="Luffyconqueredhaki/Sentiment-analysis-for-firm-monitoring-online"
)
data = [
"Adoro questo prodotto, è fantastico!",
"Il vostro servizio clienti è il peggiore che abbia mai visto."
]
risultati = sentiment_pipeline(data)
print(risultati)
# Output:
# [{'label': 'positive', 'score': 0.9...},
# {'label': 'negative', 'score': 0.9...}]