blanchefort / rubert-base-cased-sentiment

huggingface.co
Total runs: 168.1K
24-hour runs: -5.9K
7-day runs: 2.7K
30-day runs: 126.5K
Model's Last Updated: April 06 2023
text-classification

Introduction of rubert-base-cased-sentiment

Model Details of rubert-base-cased-sentiment

RuBERT for Sentiment Analysis

Short Russian texts sentiment classification

This is a DeepPavlov/rubert-base-cased-conversational model trained on aggregated corpus of 351.797 texts.

Labels
0: NEUTRAL
1: POSITIVE
2: NEGATIVE
How to use

import torch
from transformers import AutoModelForSequenceClassification
from transformers import BertTokenizerFast

tokenizer = BertTokenizerFast.from_pretrained('blanchefort/rubert-base-cased-sentiment')
model = AutoModelForSequenceClassification.from_pretrained('blanchefort/rubert-base-cased-sentiment', return_dict=True)

@torch.no_grad()
def predict(text):
    inputs = tokenizer(text, max_length=512, padding=True, truncation=True, return_tensors='pt')
    outputs = model(**inputs)
    predicted = torch.nn.functional.softmax(outputs.logits, dim=1)
    predicted = torch.argmax(predicted, dim=1).numpy()
    return predicted
Datasets used for model training

RuTweetCorp

Рубцова Ю. Автоматическое построение и анализ корпуса коротких текстов (постов микроблогов) для задачи разработки и тренировки тонового классификатора //Инженерия знаний и технологии семантического веба. – 2012. – Т. 1. – С. 109-116.

RuReviews

RuReviews: An Automatically Annotated Sentiment Analysis Dataset for Product Reviews in Russian.

RuSentiment

A. Rogers A. Romanov A. Rumshisky S. Volkova M. Gronas A. Gribov RuSentiment: An Enriched Sentiment Analysis Dataset for Social Media in Russian. Proceedings of COLING 2018.

Отзывы о медучреждениях

Датасет содержит пользовательские отзывы о медицинских учреждениях. Датасет собран в мае 2019 года с сайта prodoctorov.ru

Runs of blanchefort rubert-base-cased-sentiment on huggingface.co

168.1K
Total runs
-5.9K
24-hour runs
-15.8K
3-day runs
2.7K
7-day runs
126.5K
30-day runs

More Information About rubert-base-cased-sentiment huggingface.co Model

rubert-base-cased-sentiment huggingface.co

rubert-base-cased-sentiment huggingface.co is an AI model on huggingface.co that provides rubert-base-cased-sentiment's model effect (), which can be used instantly with this blanchefort rubert-base-cased-sentiment model. huggingface.co supports a free trial of the rubert-base-cased-sentiment model, and also provides paid use of the rubert-base-cased-sentiment. Support call rubert-base-cased-sentiment model through api, including Node.js, Python, http.

rubert-base-cased-sentiment huggingface.co Url

https://huggingface.co/blanchefort/rubert-base-cased-sentiment

blanchefort rubert-base-cased-sentiment online free

rubert-base-cased-sentiment huggingface.co is an online trial and call api platform, which integrates rubert-base-cased-sentiment's modeling effects, including api services, and provides a free online trial of rubert-base-cased-sentiment, you can try rubert-base-cased-sentiment online for free by clicking the link below.

blanchefort rubert-base-cased-sentiment online free url in huggingface.co:

https://huggingface.co/blanchefort/rubert-base-cased-sentiment

rubert-base-cased-sentiment install

rubert-base-cased-sentiment is an open source model from GitHub that offers a free installation service, and any user can find rubert-base-cased-sentiment on GitHub to install. At the same time, huggingface.co provides the effect of rubert-base-cased-sentiment install, users can directly use rubert-base-cased-sentiment installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

rubert-base-cased-sentiment install url in huggingface.co:

https://huggingface.co/blanchefort/rubert-base-cased-sentiment

Url of rubert-base-cased-sentiment

rubert-base-cased-sentiment huggingface.co Url

Provider of rubert-base-cased-sentiment huggingface.co

blanchefort
ORGANIZATIONS

Other API from blanchefort