blanchefort / rubert-base-cased-sentiment-rusentiment

huggingface.co
Total runs: 203.8K
24-hour runs: 7.2K
7-day runs: 54.4K
30-day runs: -154.1K
Model's Last Updated: April 06 2023
text-classification

Introduction of rubert-base-cased-sentiment-rusentiment

Model Details of rubert-base-cased-sentiment-rusentiment

RuBERT for Sentiment Analysis

This is a DeepPavlov/rubert-base-cased-conversational model trained on RuSentiment .

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-rusentiment')
model = AutoModelForSequenceClassification.from_pretrained('blanchefort/rubert-base-cased-sentiment-rusentiment', 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
Dataset used for model training

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.

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

203.8K
Total runs
7.2K
24-hour runs
34.7K
3-day runs
54.4K
7-day runs
-154.1K
30-day runs

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

rubert-base-cased-sentiment-rusentiment huggingface.co

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

rubert-base-cased-sentiment-rusentiment huggingface.co Url

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

blanchefort rubert-base-cased-sentiment-rusentiment online free

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

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

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

rubert-base-cased-sentiment-rusentiment install

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

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

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

Url of rubert-base-cased-sentiment-rusentiment

rubert-base-cased-sentiment-rusentiment huggingface.co Url

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

blanchefort
ORGANIZATIONS

Other API from blanchefort