Giter Club home page Giter Club logo

tctm's Introduction

Text Classification using Topic Model (TCTM)

Text Clasification using Topic Model (TCTM) is a Java-based package for text classification tool using topic model. This application respond to Windows only until now.

TCTM is made based on MALLET toolkit. This use a SVM classifier from SVM multiclass provided by Thorsten Joachims.

This application's input is a text documents set divided by training/test, and directory should be exist per class. First output is a topic model. Second one is bag of words(BOW) features. Third is joint with topic and BOW. Lastly, we provide a result by accuracy.

Sample input directory scheme : (see the data\fourNewsGroups\ )

  • train\class1\documents (Each file are handled one data) \class2\documents \class3\documents - and so on ...
  • test \class1\documents \class2\documents \class3\documents - and so on ...

Quick Start Guide

Once you have downloaded and installed TCTM, the easiest way to get started is follow below step. 0. Check directory architecture that we want to classify. -input \data\sampleforTutorial\train* (each directory should be a class(=label) name) \data\sampleforTutorial\test*

  1. Topic Modeling Make a model from a whole text corpus. edu.kaist.irlab.topics.tui.Text2VariedTopicModels --input data/sampleforTutorial/total/* --output-dir data/sampleforTutorial/topicmodel

  2. Feature Set Generation Make a varied feature set from train and test data and topic models. edu.kaist.irlab.topics.tui.Text2VariedSvmLightFeatures --input-train-dir data/sampleforTutorial/train/* --input-test-dir data/sampleforTutorial/test/* --input-topic-dir data/sampleforTutorial/topicmodel/VTopicModel_Wi100_Di200 --output-dir data/sampleforTutorial/FeatureSet_Wi100_Di200

  3. SVM Classification per feature set Excute SVM Multiclass Classification edu.kaist.irlab.classify.tui.ExecuteSvmMulticlass --input-dir data/sampleforTutorial/FeatureSet_Wi100_Di200/*

See more : https://docs.google.com/presentation/d/1emBVYeGFYF4F2Nbp9quiSrksXE-M-iNL8_-bCoiQzgo/edit#slide=id.p

tctm's People

Contributors

shalomeir avatar

Watchers

 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.