Git Product home page Git Product logo

nlp_project's Introduction

Sprint Project 06: Sentiment Analysis with NLP

Sentiment Analysis on Movies Reviews

Install

You can use Docker to easily install all the needed packages and libraries:

$ docker build -t nlp_project -f Dockerfile .

Run Docker

$ docker run --rm --net host -it \
    -v $(pwd):/home/app/src \
    nlp_project \
    bash

Run Project

It doesn't matter if you are inside or outside a Docker container, in order to execute the project you need to launch a Jupyter notebook server running:

$ jupyter notebook

Then, inside the file Sentiment_Analysis_NLP.ipynb, you can see the project statement, description and also which parts of the code you must complete in order to solve it.

Tests

We've added some basic tests to Sentiment_Analysis_NLP.ipynb that you must be able to run without errors in order to approve the project. If you encounter some issues in the path, make sure to be following these requirements in your code:

  • Every time you need to run a tokenizer on your sentences, use nltk.tokenize.toktok.ToktokTokenizer.
  • When removing stopwords, always use nltk.corpus.stopwords.words('english').
  • For Stemming, use nltk.porter.PorterStemmer.
  • For Lematizer, use Spacy pre-trained model en_core_web_sm.

You can use others methods if you want to do extra experimentation but do it outside the code used to run the tests. Otherwise, they may fail for some specific cases.

nlp_project's People

Contributors

lunajhoeel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.