seara/rubert-tiny2-russian-sentiment

Model

This is RuBERT-tiny2 model fine-tuned for __sentiment classification__ of short __Russian__ texts.

35

16 commits

3 linked in READMEs

updated Oct 29, 2024

See the code

README

This is RuBERT-tiny2 model fine-tuned for sentiment classification of short Russian texts. The task is a multi-class classification with the following labels:

0: neutral
1: positive
2: negative

Label to Russian label:

neutral: нейтральный
positive: позитивный
negative: негативный

Usage

from transformers import pipeline
model = pipeline(model="seara/rubert-tiny2-russian-sentiment")
model("Привет, ты мне нравишься!")
# [{'label': 'positive', 'score': 0.9398769736289978}]

Dataset

This model was trained on the union of the following datasets:

  • Kaggle Russian News Dataset
  • Linis Crowd 2015
  • Linis Crowd 2016
  • RuReviews
  • RuSentiment

An overview of the training data can be found on S. Smetanin Github repository.

Download links for all Russian sentiment datasets collected by Smetanin can be found in this repository.

Training

Training were done in this project with this parameters:

tokenizer.max_length: 512
batch_size: 64
optimizer: adam
lr: 0.00001
weight_decay: 0
epochs: 5

Train/validation/test splits are 80%/10%/10%.

Eval results (on test split)

neutralpositivenegativemacro avgweighted avg
precision0.70.840.740.760.75
recall0.740.830.690.750.75
f1-score0.720.830.710.750.75
auc-roc0.850.950.910.90.9
support5196383135991262612626
bert
classification
endpoints_compatible
multiclass
multi-class-classification
pytorch
rubert
russian
safetensors
sentiment
sentiment analysis
sentiment-analysis
text-classification
text-embeddings-inference
tf
tiny
transformers

seara/rubert-tiny2-russian-sentiment

Model

This is RuBERT-tiny2 model fine-tuned for __sentiment classification__ of short __Russian__ texts.

35

16 commits

3 linked in READMEs

updated Oct 29, 2024

See the code

README

This is RuBERT-tiny2 model fine-tuned for sentiment classification of short Russian texts. The task is a multi-class classification with the following labels:

0: neutral
1: positive
2: negative

Label to Russian label:

neutral: нейтральный
positive: позитивный
negative: негативный

Usage

from transformers import pipeline
model = pipeline(model="seara/rubert-tiny2-russian-sentiment")
model("Привет, ты мне нравишься!")
# [{'label': 'positive', 'score': 0.9398769736289978}]

Dataset

This model was trained on the union of the following datasets:

  • Kaggle Russian News Dataset
  • Linis Crowd 2015
  • Linis Crowd 2016
  • RuReviews
  • RuSentiment

An overview of the training data can be found on S. Smetanin Github repository.

Download links for all Russian sentiment datasets collected by Smetanin can be found in this repository.

Training

Training were done in this project with this parameters:

tokenizer.max_length: 512
batch_size: 64
optimizer: adam
lr: 0.00001
weight_decay: 0
epochs: 5

Train/validation/test splits are 80%/10%/10%.

Eval results (on test split)

neutralpositivenegativemacro avgweighted avg
precision0.70.840.740.760.75
recall0.740.830.690.750.75
f1-score0.720.830.710.750.75
auc-roc0.850.950.910.90.9
support5196383135991262612626
bert
classification
endpoints_compatible
multiclass
multi-class-classification
pytorch
rubert
russian
safetensors
sentiment
sentiment analysis
sentiment-analysis
text-classification
text-embeddings-inference
tf
tiny
transformers