yuriy-os/russian-reviews-sentiment-analysis

Gradually increase the complexity of your models until you run BERT for one epoch and get the best results

0

stars

12

commits

Python

primary language

Nov 8, 2020

updated

README

russian-reviews-sentiment-analysis

Open In Colab

I just wanted to try out :hugs: Huggingface's new Trainer API and get up-to-date with recent torchtext releases, also I've stumbled upon on an interesting Russian reviews dataset. So I decided to perform sentiment classification, gradually increasing the complexity of classifiers and compare their performance.

Data

You can see dataset overview in the original repository.

Models

I chose TF-IDF and SVM as a baseline model, CNN (because it was used in the original article) and DeepPavlov's RuBERT (rubert-base-cased-conversational), because I just wanted to try it out. Also, creators of the original dataset have provided pre-trained embeddings, so I decided to use them also.

Results

ModelPrecision (macro)Recall (macro)F1-score (macro)
MNB (article)74.4773.7973.90
CNN (without emoticons) (article)74.7174.5474.31
CNN (with emoticons) (article)75.6375.3175.45
TF-IDF + SVM (mine)74.4474.4674.45
CNN (mine)75.5174.9975.19
RuBERT (rubert-base-cased-conversational) (mine)78.2877.6877.91

References

  1. Smetanin, S., & Komarov, M. (2019, July). Sentiment Analysis of Product Reviews in Russian using Convolutional Neural Networks. In 2019 IEEE 21st Conference on Business Informatics (CBI) (Vol. 1, pp. 482-486). IEEE.

Contributors

yuriy-os

12 commits

yuriy-os/russian-reviews-sentiment-analysis

Gradually increase the complexity of your models until you run BERT for one epoch and get the best results

0

stars

12

commits

Python

primary language

Nov 8, 2020

updated

README

russian-reviews-sentiment-analysis

Open In Colab

I just wanted to try out :hugs: Huggingface's new Trainer API and get up-to-date with recent torchtext releases, also I've stumbled upon on an interesting Russian reviews dataset. So I decided to perform sentiment classification, gradually increasing the complexity of classifiers and compare their performance.

Data

You can see dataset overview in the original repository.

Models

I chose TF-IDF and SVM as a baseline model, CNN (because it was used in the original article) and DeepPavlov's RuBERT (rubert-base-cased-conversational), because I just wanted to try it out. Also, creators of the original dataset have provided pre-trained embeddings, so I decided to use them also.

Results

ModelPrecision (macro)Recall (macro)F1-score (macro)
MNB (article)74.4773.7973.90
CNN (without emoticons) (article)74.7174.5474.31
CNN (with emoticons) (article)75.6375.3175.45
TF-IDF + SVM (mine)74.4474.4674.45
CNN (mine)75.5174.9975.19
RuBERT (rubert-base-cased-conversational) (mine)78.2877.6877.91

References

  1. Smetanin, S., & Komarov, M. (2019, July). Sentiment Analysis of Product Reviews in Russian using Convolutional Neural Networks. In 2019 IEEE 21st Conference on Business Informatics (CBI) (Vol. 1, pp. 482-486). IEEE.

Contributors

yuriy-os

12 commits

Languages

Python

100.0%