Giter VIP home page Giter VIP logo

cs224n_final's Introduction

CS224 Final Project

Tum Chaturapruek and Raphael Townshend

Autumn 2014

Installation

Install the following through pip install

  • scikit-learn
  • nltk (also download data after installing)
  • senticnet

Download MaltParser 1.8.1, place it at ~/maltparser-1.8.1, and create a symbolic link ln -s ~/maltparser-1.8.1/maltparser-1.8.1.jar /usr/local/bin/malt.jar

Download concept parser from the senticNet website and place it at ~/concept-parser.

File structure

Most results are stored at static/test_data/sample_data.json.

Caches are located in caches

Helper script is in scripts

Python code is in code

Visualization tools are in static

Other assorted data is in data

Visualizer

To use our visualizer, open static/map.html. Use Firefox instead of Safari for a better support of AngularJS.

static/map.js and static/admin.js contain all the logic components related to mapping and visualizing.

Rule-Based Scorers

To run the scorers, run python code/process_reviews.py [foodName] 0 199

foodName can be any of beer, burger, burrito, lobster. 0 and 199 indicate that we're running from data sample 0 to data sample 199. You can change these numbers.

To evaluate the scorer output, run

python code/evaluator.py static/test_data/sample_data.json

Classifier

To run the classification system, ensure that static/test/sample_data.json has been generated (revert, or regenerate if necessary). Then run python code/feature_based_sentiment_classifier.py [foodName]. Where foodName can be any of those specified in the rule-based section.

cs224n_final's People

Contributors

raphtown avatar tummykung avatar

Watchers

 avatar  avatar  avatar

Forkers

killix

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.