GithubHelp home page GithubHelp logo

ethanhezhao / miga Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 410 KB

MIGA is a short text clustering/aggregation topic model that leverages document metadata

License: MIT License

MATLAB 100.00%
topic-modeling short-text twitter-analysis document-clustering

miga's Introduction

MIGA

MIGA is a short text clustering/aggregation topic model that leverages document metadata, which enjoys improved performance on short text topic modelling and clustering. MIGA is able to cluster documents according to both their semantics (captured by topics) and their metadata. Each cluster can also be visualised by their topics.

MIGA is detailed in the paper "Leveraging Meta Information in Short Text Aggregation" in ACL 2019 Link.

Run MIGA

  1. Requirements: Matlab 2016b (or later).

  2. We have offered the WS dataset used in the paper, which is stored in MAT format, with the following contents:

  • doc: A V by N sparse matrix of the documents, where V and N are the number of unique words and the number of documents, respectively.
  • doc_label: the one-hot representation of the document labels.
  • voc: vocabulary of the dataset.
  • label_name: the name of the document labels.

Please prepare your own documents in the above format. If you want to use this dataset, please cite the original papers, which are cited in our paper.

  1. Run demo_MIGA.m.

  2. Important parameters:

  • Para.M: the number of clusters.
  • Para.K: the number of topics.
  • Para.is_meta_data: whether document metadata is used to aggregate/cluster documents.
  • Para.is_sample_alpha: whether the prior, i.e., alpha is sampled
  1. Outputs:

The code saves the necessary statistics of the model, in a MAT file named ./save/model.mat.

The code also prints the most important clusters for each document label, the most important documents and topics for each cluster, as shown in the paper. The visualisation can be useful for detailed understanding of the input corpus.

miga's People

Contributors

ethanhezhao avatar

Stargazers

 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.