Code Monkey home page Code Monkey logo

jst's Introduction

*****************************************************
         Joint Sentiment-Topic (JST) Model 
*****************************************************

(C) Copyright 2013, Chenghua Lin and Yulan He

Written by Chenghua Lin, University of Aberdeen, [email protected], part of code
is from http://gibbslda.sourceforge.net/.

This file is part of JST implementation.

JST is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version.

JST is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA


------------------------------------------------------------------------

This is a C++ implementation of the joint sentiment-topic (JST) model for  
sentiment classification and extracting sentiment-bearing topics from text copara.

------------------------------------------------------------------------


TABLE OF CONTENTS


A. COMPILING

B. ESTIMATION

C. INFERENCE

D. Data format

E. References 


------------------------------------------------------------------------

A. COMPILING

Type "make" in a shell.


------------------------------------------------------------------------

B. ESTIMATION

Estimate the model by executing:

	jst -est -config YOUR-PATH/train.properties	
	
Outputs of jst estimation include the following files:
	<iter>.others  // contains model parameter settings
	<iter>.pi      // contains the per-document sentiment distributions
	<iter>.phi     // contains the sentiment specific topic-word distributions
	<iter>.theta   // contains the per-document sentiment specific topic proportions
	<iter>.tassign // contains the sentiment label and topic assignments for words in training data
------------------------------------------------------------------------

C. INFERENCE

To perform inference on a different set of data (in the same format as
for estimation), execute:

    jst -inf -config YOUR-PATH/test.properties
    
Outputs of jst inference include the following files:
	<modelName_iter>.newothers 
	<modelName_iter>.newpi 
	<modelName_iter>.newphi 
	<modelName_iter>.newtheta 
	<modelName_iter>.newtassign
    
------------------------------------------------------------------------

D. Data format

(1) The input data format for estimation/inference is as follows, where each line is one document, preceded by the document ID.

    [Doc_1 name] [token_1] [token_2] ... [token_N]
     :
     :
    [Doc_M name] [token_1] [token_2] ... [token_N]

(2) Sentiment lexicon (mpqa.constraint)

    [word]	[neu prior prob.] [pos prior prob.] [neg prior prob.]
	
	
------------------------------------------------------------------------

E. References

[1] Lin, C., He, Y., Everson, R. and Reuger, S. Weakly-supervised Joint Sentiment-Topic Detection from Text, IEEE Transactions on Knowledge and Data Engineering (TKDE), 2011.

[2] Lin, C. and He, Y. Joint Sentiment/Topic Model for Sentiment Analysis, In Proceedings of the 18th ACM Conference on Information and Knowl- edge Management (CIKM), Hong Kong, China, 2009.


jst's People

Contributors

linron84 avatar

Stargazers

 avatar  avatar Ger Hobbelt avatar bansky-cl avatar  avatar  avatar  avatar  avatar Zach Drever avatar  avatar mutedial avatar  avatar LIN TING avatar  avatar  avatar MyungHoon Jin avatar march avatar wanli2014 avatar  avatar Théo Morel avatar Zhiyu Chen avatar CH7au avatar ztt avatar Eumenides avatar Messyidea avatar Max Boiten avatar Mark avatar 荶枫 avatar Rahul Mehta avatar Kolja avatar  avatar  avatar zhikaizhang avatar Arthur Pachachura avatar Berlin_hsin avatar  avatar WindJack avatar Md. Hijbul Alam avatar  avatar  no name avatar  avatar Long Jin avatar Nicolas Braem avatar  avatar Andy avatar Richard M Crowley avatar Sijia Liu avatar  avatar Zubin Jelveh avatar Yiping Jin avatar Andy Liu avatar Roman Kutlak avatar Feng Wang (Felix) avatar Rui Peng avatar

Watchers

James Cloos avatar  avatar  avatar Richard M Crowley avatar  avatar xiaonan avatar  avatar Kangsk avatar

jst's Issues

Undefined reference when linking utils.o

It seems like the sort function is declared in the utils.h file but is not defined in the corresponding utils.cpp file; thus the compiler fires a linker error.

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.