Git Product home page Git Product logo

restaurant-opinion-mining's Introduction

This project investigates different approaches for extracting aspects and values in restaurant reviews. A complete description of the methods used is in writeup.pdf. This was done as a class project for the University of Washington's Natural Language Processing course (CSE 517).

Use "python tester.py" to run the project. It runs the experiments in the writeup and outputs tables in a form that can be copy-pasted into latex. It requires python 2.7 and the scikit-learn python module to run.

Complete description of files:

data contains the both the annotated and preprocessed data:

  • gold_labels.json contains the phrases with word label annotations
  • phrases contains the phrases, one per line
  • tagged_phrases contains the output of the Stanford POS Tagger on the phrases
  • parse_trees contains the output of the Stanford Parser on the phrases

code contains the project source code:

  • preprocesser.py runs the Stanford POS Tagger and Parser over the data. It is not necessary to run, since the preprocessed is already included in the data directory. If you want to run it anyway, it requires the Stanford POS Tagger and Parser.
  • loader.py reads the data in and does some basic processing, such as deserializing the parse trees
  • rule_based_models.py contain the rule-based predictors
  • markov_models.py contains the HMM and MEMM predictors
  • tester.py runs the experiments in the report

restaurant-opinion-mining's People

Contributors

clarkkev avatar

Watchers

James Cloos 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.