Skip to content

This project uses a neural network to classify the sentiment of a review as positive or negative

License

Notifications You must be signed in to change notification settings

lorival/sentiment-classification-by-text

Repository files navigation

License

Sentiment classification by text

This project uses a neural network to classify the sentiment of a review as positive or negative.

See the jupyter notebook

Motivation

Practicing noise reduction and performance optimization of a neural network.

Built With

Dataset

List of movie reviews from IMDB

Result

  • Final speed: 1.2k reviews/sec
  • Final accuracy: 85.9%
  • Reviews used: 1k

Getting Started

Prerequisites

  1. Download and install Anaconda
  2. Update Anaconda
$ conda upgrade conda 
$ conda upgrade --all 

Install

  1. Clone and enter into the project's root directory by command line
$ git clone https://github.com/machine-learning-experiments/sentiment-classification-by-text.git
  1. Create and activate enviroment
$ conda env create -f enviroment.yaml 
$ conda activate sentiment-classification-by-text 

or

conda create --name sentiment-classification-by-text python=3
source activate sentiment-classification-by-text
conda install numpy matplotlib scikit-learn jupyter notebook bokeh
  1. Start jupyter notebook
$ jupyter notebook 
  1. Your browser will open showing a list of files, click on the sentiment_classification_neural_network.ipynb notebook file

Author

Lorival Smolski Chapuis

This project was developed during the deep-learning nanodegree from Udacity

About

This project uses a neural network to classify the sentiment of a review as positive or negative

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published