Downloads · 30 days
0
WarriorsSami/sentiment-analysis-model
sentiment-analysis-model is a machine learning model from WarriorsSami. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A sentiment analysis model built using the Burn deep learning framework in Rust, fine-tuned on the MTEB Tweet Sentiment Extraction dataset and exposed via a Rocket API.
Downloads · 30 days
0
Access
Public
Updated May 25, 2025
Repo size
42.6 MB
Likes
0
Public
Click a slice to open those files.
.mpk21.3 MB · 99%
From the Hugging Face model README
A sentiment analysis model built using the Burn deep learning framework in Rust, fine-tuned on the MTEB Tweet Sentiment Extraction dataset and exposed via a Rocket API.
TextClassificationModel {
transformer: TransformerEncoder {d_model: 256, d_ff: 1024, n_heads: 8, n_layers: 4, dropout: 0.1, norm_first: true, quiet_softmax: true, params: 3159040}
embedding_token: Embedding {n_embedding: 28996, d_model: 256, params: 7422976}
embedding_pos: Embedding {n_embedding: 256, d_model: 256, params: 65536}
embed_dropout: Dropout {prob: 0.1}
output_dropout: Dropout {prob: 0.1}
output: Linear {d_input: 256, d_output: 3, bias: true, params: 771}
n_classes: 3
max_seq_length: 256
params: 10648323
}
| Split | Metric | Min. | Epoch | Max. | Epoch |
|---|---|---|---|---|---|
| Train | Loss | 1.120 | 5 | 1.171 | 1 |
| Train | Accuracy | 33.743 | 2 | 37.814 | 1 |
| Train | Learning Rate | 2.763e-8 | 1 | 7.648e-8 | 2 |
| Valid | Loss | 1.102 | 4 | 1.110 | 1 |
| Valid | Accuracy | 32.760 | 2 | 36.900 | 5 |
/predict{
"text": "I love the new features in this app!"
}
{
"sentiment": "Positive"
}