Git Product home page Git Product logo

microasm's Introduction

MicroASM

Aspect sentiment model for short text

This code was used in the experiments of the research paper

Reinald Kim Amplayo and Seung-won Hwang. Aspect Sentiment Model for Micro Reviews. ICDM, 2017.

To run the code, several parameters are needed to be set. Refer to our paper to determine the recommended values:

  • file: The file containing the short text, one per line.
  • seedDir: The directory containing the sentiment seed words, containing two (or more if you have more sentiments, in the paper we only use positive and negative as sentiment labels) files named 0.txt and 1.txt. These files should contain one sentiment lexicon per line. For a sample seed word lists, refer to the data folder.
  • noOfTopics: The number of topics/aspects.
  • noOfSentiments: The number of sentiments.
  • noOfPseudodocs: The number of clusters.
  • noOfIters: The number of iterations.
  • alpha: The Dirichlet prior on the aspect-sentiment distribution.
  • beta0, beta1, beta2: The different Dirichlet priors on the word distribution that depends on the sentiment seed words given.
  • gamma: The Dirichlet prior on the sentiment distribution.
  • delta: The Dirichlet prior on the document distribution.
  • window: The context window to create aspect-sentiment pairs.

An example run would be:

java MicroASM data.txt seed/ 15 2 500 1500 0.1 0.01 0.1 0 1 0.1 5

To cite the paper/code, please use this BibTex:

@inproceedings{amplayo2017aspect,
	Author = {Reinald Kim Amplayo and Seung-won Hwang},
	Booktitle = {ICDM},
	Location = {New Orleans, LA},
	Year = {2017},
	Title = {Aspect Sentiment Model for Micro Reviews},
}

If you have questions, send me an email: rktamplayo at yonsei dot ac dot kr

microasm's People

Contributors

rktamplayo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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