Downloads · 30 days
0
SergeyR256/sentiment-model-first
sentiment-model-first is a machine learning model from SergeyR256. 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.
Эта модель определяет эмоциональную окраску русскоязычных отзывов: позитивную, нейтральную или негативную.
Downloads · 30 days
0
Access
Public
Updated Nov 27, 2025
Repo size
117 MB
Likes
0
Public
Click a slice to open those files.
.safetensors117 MB · 97%
From the Hugging Face model README
Эта модель определяет эмоциональную окраску русскоязычных отзывов: позитивную, нейтральную или негативную.
Обучена на реальных отзывах с маркетплейсов и сервисов. Подходит для анализа отзывов о товарах, услугах, фильмах, ресторанах и т.д.
cointegrated/rubert-tiny2 (дообученная)neutral (0)positive (1)negative (2)pip install transformers torch
from transformers import pipeline
classifier = pipeline("text-classification", model="./sentiment-model-rus", tokenizer="./sentiment-model-rus", top_k=1)
label_map = {0: "neutral", 1: "positive", 2: "negative"}
raw_output = classifier("проведец честный, рекомендую", top_k=1)
for pred in raw_output:
label_id = int(pred['label'].replace('LABEL_', ''))
pred['label'] = label_map[label_id]
print(raw_output)
⚠️ Ограничения