Coder Social home page Coder Social logo

whuir / stm Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 3.0 4.33 MB

The implementation of 'Effective Document Labeling with Very Few Seed Words: A Topic Modeling Approach', Chenliang Li, Jian Xing, Aixin Sun, Zongyang Ma, https://doi.org/10.1145/2983323.2983721

Java 100.00%
dataless document-classification topic-model

stm's Introduction

STM

The implementation of the Seed-guided Topic Model (STM), as described in 2016 CIKM paper:

Effective Document Labeling with Very Few Seed Words: A Topic Modeling Approach. Chenliang Li, Jian Xing, Aixin Sun, Zongyang Ma.

The STM is a topic model for the dataless text classification task.

Description

  1. catalog file

Catalog file is uesd to describe category information. For example, the catalog file of data set '20 news groups' sholud be wrote in this form :

cate alt.atheism cate comp.graphics cate comp.windows.x .....

If we want to combine several categories into one , take 'comp' and 'sci' as examples , then the file should be wrote like this :

cate comp.graphics comp.os.ms-windows.misc comp.sys.ibm.pc.hardware comp.windows.x comp.sys.mac.hardware cate sci.crypt sci.med sci.space sci.electronics .....

remember that data file path must be same as category name. "20_news_group/comp.graphics/..." : a path like this is valid "20_news_group/othernames/..." : and this one may cause run-time error

  1. seed word file

Just like catalog file , seed word file also use 'cate' as sign of the begin of a category :

cate windows dos microsoft ms cate graphics image gif animation tiff cate gay homosexual sexual ....

Make sure that the category order in catalog file is same as it in seed word file, like this:

cate cate comp.graphics graphics image gif animation tiff cate cate sci.space space orbit moon earth sky solar ..... .....

  1. launch the program

The main Java entry is in class 'stm'. To launch the program there are several parameters must be specified , such like "model.testSetPath" which means the path of test path , and 'model.catalogPath' which means the path of catalog file.

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.