Giter VIP home page Giter VIP logo

rnn-sentiment-analysis's Introduction

rnn-sentiment-analysis

CS224u Final Project

Use Recurrent Neural Networks to identify the sentiment of an input text.

Created by Nico Cserepy, Stephen Koo, and Ben Weems

Start with the following command to list all the possible options.

python train.py -h

Example training and evaluation run:

python train.py --train-embedding --parameters=params.tflearn --epochs=5

To continue training from where you left off (if you previously saved parameters at params.tflearn):

python train.py --train-embedding --parameters=params.tflearn --epochs=5 --continue-training

To try a different set of GLoVE vectors:

python train.py --glove=YOURVECTORS.txt --data-cache=newdata.pkl --force-preprocess

The --force-preprocess flag here may be important here if you previously used a different set of GLoVE vectors with the same data cache location, since the preprocessing steps depend on the GLoVE vectors you are using. If --force-preprocess is not specified, the program will attempt to load previously cached preprocessed data from the specified location (or the default sst_data.pkl).

To create a new model, create a new module at data/models/<modelname>.py. The module should define function called build(), which should return a network built by tflearn (see data/models/lstm.py for an example).

rnn-sentiment-analysis's People

Contributors

bweems avatar kashizui 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.