/ Модель

Характеристики

Контекст
512 токенов
Параметры
205 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
rubert-base-cased-sentiment-rusentiment
Опубликована
1 авг 2026

rubert-russian-financial-sentiment

Классификация текстаТекст → label3 профессии

Русскоязычная BERT-модель определяет отрицательную, нейтральную или положительную тональность финансовых и экономических текстов.

19скачиваний за 30 дней0лайковвеса обновлены4 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

RuBERT Russian Financial Sentiment — русскоязычный классификатор тональности финансовых и экономических текстов, разработанный автором репозитория на основе модели blanchefort/rubert-base-cased-sentiment-rusentiment. Это BERT-модель для классификации последовательностей объёмом 205,1 млн параметров; она относит текст к одному из трёх классов: отрицательная, нейтральная или положительная тональность. Модель дообучена на наборе mteb/SentiRuEval2016 и рассчитана на анализ новостных заголовков и статей, публикаций в социальных сетях и комментариев об экономике, компаниях и рынках.

Метаданные указывают максимальный контекст в 512 токенов, тогда как README сообщает ограничение обучения и использования в 128 токенов; для длинных текстов автор рекомендует разбиение или усечение. На тестовой выборке из 3 000 примеров указаны accuracy 0,8123 и macro F1 0,8108; чаще всего модель смешивает нейтральные и положительные высказывания. Она лицензирована по Apache 2.0. Результаты не следует использовать как единственное основание для финансовых решений.

Сценарии применения

  • Определение тональности новостей о компаниях и рынках
  • Классификация публикаций о финансах в социальных сетях
  • Анализ тональности комментариев инвесторов
  • Разметка экономических заголовков по тональности

Ограничения

Ограничение README — 128 токенов; длинные документы следует разбивать или усекать. Модель может путать нейтральную и положительную тональность, а сарказм, специальная финансовая терминология и смешанная тональность могут снижать точность; предсказания не предназначены для принятия финансовых решений в одиночку.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

RuBERT Russian Financial Sentiment

A fine-tuned RuBERT model for 3-class sentiment classification of Russian-language financial and economic text (negative / neutral / positive).

This model fine-tunes blanchefort/rubert-base-cased-sentiment-rusentiment on the SentiRuEval2016 dataset, adapting a general-purpose Russian sentiment model to the financial domain.

Model Details

  • Base model: blanchefort/rubert-base-cased-sentiment-rusentiment (RuBERT)
  • Architecture: BERT for Sequence Classification
  • Language: Russian
  • Task: 3-class sentiment classification
  • Training dataset: mteb/SentiRuEval2016
  • Max sequence length: 128 tokens
  • License: Apache 2.0

Labels

Label IDSentiment
0Negative
1Neutral
2Positive

Usage

from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch

model_name = "ilyali034/rubert-russian-financial-sentiment"
model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

text = "Акции компании выросли на 15% после публикации отчетности"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=128)

with torch.no_grad():
    outputs = model(**inputs)
    predicted_class_id = torch.argmax(outputs.logits, dim=-1).item()

id2label = {0: "negative", 1: "neutral", 2: "positive"}
print(f"Predicted sentiment: {id2label[predicted_class_id]}")

Or with the pipeline API:

from transformers import pipeline

classifier = pipeline("text-classification", model="ilyali034/rubert-russian-financial-sentiment")
result = classifier("Банк объявил о рекордной прибыли за квартал")
print(result)

Training Details

The model was fine-tuned using the Hugging Face Trainer API.

  • Epochs: 3
  • Batch size: 16 (train and eval)
  • Warmup steps: 500
  • Weight decay: 0.01
  • Best checkpoint selected by: macro F1 on the validation set
  • Train/validation split: 85% / 15% (stratified by label), plus the original held-out test split

Labels in the source dataset (-1, 0, 1) were remapped to (0, 1, 2) for negative, neutral, and positive respectively.

Evaluation Results

Evaluated on a held-out test set of 3,000 examples (1,000 per class).

MetricScore
Accuracy0.8123
Macro F10.8108
Macro Precision0.8211
Macro Recall0.8123
Matthews Correlation Coefficient (MCC)0.7232
Cohen's Kappa0.7185

Per-Class Metrics

ClassPrecisionRecallF1-ScoreSupport
Negative0.85050.88200.86601000
Neutral0.82770.77800.80211000
Positive0.79080.80900.79981000
Macro Avg0.82300.82300.82263000
Weighted Avg0.82300.82300.82263000

Confusion Matrix

Predicted NegativePredicted NeutralPredicted Positive
Actual Negative8824969
Actual Neutral77778145
Actual Positive78113809

The model performs best on negative sentiment (F1 = 0.866). The most common confusion is between neutral and positive text, which is typical for financial language where neutral factual statements and mildly positive statements can overlap.

Intended Use

This model is intended for sentiment analysis of Russian-language financial and economic content such as:

  • News headlines and articles about companies, markets, and the economy
  • Social media posts and comments discussing financial topics
  • Analyst commentary and investor discussions

Limitations

  • Trained on general Russian sentiment data (SentiRuEval2016), not a purpose-built financial corpus, so domain-specific nuance (e.g. sarcasm, technical jargon, mixed-sentiment reports) may not be fully captured.
  • Maximum input length is 128 tokens; longer documents should be split or truncated.
  • As with any sentiment classifier, predictions should not be used as the sole basis for financial decision-making.

Citation

If you use this model, please cite the base model and dataset:

@misc{rubert-financial-sentiment,
  author = {ilyali034},
  title = {RuBERT Russian Financial Sentiment},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/ilyali034/rubert-russian-financial-sentiment}
}

Base model: blanchefort/rubert-base-cased-sentiment-rusentiment Dataset: mteb/SentiRuEval2016

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
BertForSequenceClassification
Ревизия весов
c601562

0 моделей