Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.61 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.61 KB

Restaurant_Reviews

This is a tutorial in an IPython Notebook for Restaurant_Reviews Contain 1000 positive and negative review. The goal of this repository is to provide an insight for those interested in getting into the field of Text analysis

Quick Start: View a static version of the notebook in the comfort of your own web browser.

Installation:

To run this notebook interactively:

  1. Download this repository in a zip file by clicking on this link or execute this from the terminal: git clone
  2. Install virtualenv.
  3. Navigate to the directory where you unzipped or cloned the repo and create a virtual environment with virtualenv env.
  4. Activate the environment with source env/bin/activate
  5. Install the required dependencies with pip install -r requirements.txt.
  6. Execute ipython notebook from the command line or terminal.
  7. Click on Titanic.ipynb on the IPython Notebook dasboard and enjoy!
  8. When you're done deactivate the virtual environment with deactivate.

Dependencies:

  1. NumPy
  2. pandas
  3. re
  4. nltk
  5. sklearn

Goal for this Notebook:

Show a simple example of Text analysis of the Retra. Review in Python using a full complement of PyData utilities. This is aimed for those looking to get into the field or those who are already in the field and looking to see an example of an analysis done with Python.

This shows following

  1. Importing the libraries
  2. Importing the dataset
  3. Cleaning the texts
  4. Creating the Bag of Words model
  5. Splitting the dataset into the Training set and Test set
  6. Fitting Naive Bayes to the Training set
  7. Predicting the Test set results
  8. Making the Confusion Matrix