Amazing-Python-Scripts

Форк
0

README.md

Sentiment Analyser

This is a sentiment analyser that takes in a sentence and returns the sentiment of the sentence. It gives rating to the emotions present in the sentence, from 0 to 1. It uses NLP and ML algroithms to do so. This is trained on word2vec dataset using IMDB movie reviews. And the test model is based on RNN.

Setup instructions

  • Install python 3.6 or above
  • Install the required packages using the following command
pip install -r requirements.txt
  • First execute the word2vec.ipynb file to train the model
  • Then execute the RNN(w2v).ipynb file to test the model
  • Change the epochs batch size based on your system configuration and the accuracy you want.
  • It will then create a csv file with the sentiment of the sentence.

Output

Check the screenshot in this folder for the output.

Author(s)

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.