Downloads · 30 days
90
5% of all-time downloads
ltg/norbert3-base_sentence-sentiment
norbert3-base_sentence-sentiment is a text classification model from ltg. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-4.0.
This model is a fine-tuned version of ltg/norbert3-base for text classification.
Downloads · 30 days
90
5% of all-time downloads
All-time downloads
1.9K
Public
Parameters
127M
521 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors521 MB · 100%
How the weights are stored.
F32124M · 98%
From the Hugging Face model README
This model is a fine-tuned version of ltg/norbert3-base for text classification.
The dataset used for fine-tuning is ltg/norec_sentence, the mixed subset with four sentement categories:
[0]: Negative,
[1]: Positive,
[2]: Neutral
[0,1]: Mixed
You can use this model for inference as follows:
>>> from transformers import pipeline
>>> origin = "ltg/norbert3-base_sentence-sentiment"
>>> pipe = transformers.pipeline( "text-classification",
... model = origin,
... trust_remote_code=origin.startswith("ltg/norbert3"),
... config= origin,
... tokenizer = AutoTokenizer.from_pretrained(origin)
... )
>>> preds = pipe(["Hans hese, litt såre stemme kler bluesen, men denne platen kommer neppe til å bli blant hans største kommersielle suksesser.",
... "Borten-regjeringen gjorde ikke jobben sin." ])
>>> for p in preds:
... print(p)
Output:
The model 'NorbertForSequenceClassification' is not supported for text-classification. Supported models are ['AlbertForSequenceClassification', ...
{'label': 'Mixed', 'score': 0.9230353236198425}
{'label': 'Negative', 'score': 0.7348112463951111}
| Category | F1 | |
|---|---|---|
| Negative_F1 | 0.580247 | <img width=400/> |
| Positive_F1 | 0.781699 | |
| Neutral_F1 | 0.825197 | |
| Mixed_F1 | 0.648649 | |
| Weighted_avg_F1 | 0.763806 |