MonoHime commited on
Commit
6a37d1c
1 Parent(s): 6019554

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ru
4
+ tags:
5
+ - sentiment
6
+ - text-classification
7
+ datasets:
8
+ - Tatyana/ru_sentiment_dataset
9
+ ---
10
+
11
+ # RuBERT for Sentiment Analysis
12
+ Russian texts sentiment classification.
13
+
14
+ Model trained on [Tatyana/ru_sentiment_dataset](https://huggingface.co/datasets/Tatyana/ru_sentiment_dataset)
15
+
16
+ ## Labels meaning
17
+ 0: NEUTRAL
18
+ 1: POSITIVE
19
+ 2: NEGATIVE
20
+
21
+ ## How to use
22
+ ```python
23
+
24
+ !pip install tensorflow-gpu
25
+ !pip install deeppavlov
26
+ !python -m deeppavlov install squad_bert
27
+ !pip install fasttext
28
+ !pip install transformers
29
+ !python -m deeppavlov install bert_sentence_embedder
30
+
31
+ from deeppavlov import build_model
32
+
33
+ model = build_model(path_to_model/config.json)
34
+ model(["Сегодня хорошая погода", "Я счастлив проводить с тобою время", "Мне нравится эта музыкальная композиция"])
35
+
36
+ ```
37
+
38
+