Giter Club home page Giter Club logo

jst's Introduction

JST (Joint Sentiment Topic Model)

This is a java implementation of Joint Sentiment Topic Model. JST can be used for sentiment analysis and emotion detection.

Usage

Method 1: Compile a jar using the jst.core.JST class as Main and execute.

Method 2: Run jst.core.Run.

Extracted Topics

Following is the extracted topics using a chinese news dataset. Check the .stwords file in model directory to see all the topics.

topics

Lexicon

The format of sentiment or emotion lexicon file is as follows:

S senti_name_1 senti_name_2 ... senti_name_S

token_1 token_sentiment_distribution_1

token_2 token_sentiment_distribution_2

.

.

token_m sentiment_distribution_m

where S is the number of sentiment and token sentiment distribution is a S-dimensional vector separated by a blank.

Refer to lexicon.txt in the data directory.

Data Format

N

doc_sentiment_distribution_1#word_1 word_2 ... word_d1

doc_sentiment_distribution_2#word_1 word_2 ... word_d2

.

.

doc_sentiment_distribution_N#word_1 word_2 ... word_dN

where N is the number of documents, document sentiment distribution is a S-dimensional vector separated by a blank.

Demo

A demo chinese dataset has been provided in the data directory. Segmentation of Chinese text or tokenization of English text should be done for preprocessing. Run jst.core.Run to train a new model.

Author

jst's People

Contributors

laserwave avatar messyidea avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

jst's Issues

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.