Giter Site home page Giter Site logo

royshan / psslda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidandrzej/psslda

0.0 2.0 0.0 125 KB

Parallel Semi-Supervised Latent Dirichlet Allocation

Home Page: http://pages.cs.wisc.edu/~andrzeje/

License: GNU General Public License v3.0

C 70.64% Python 29.36%

psslda's Introduction

PARALLEL SEMI-SUPERVISED LDA (pSSLDA)
Version 0.1

David Andrzejewski ([email protected])
Department of Computer Sciences
University of Wisconsin-Madison, USA



This software implements an extension of Latent Dirichlet Allocation
(LDA) [2] which includes "topic-in-set knowledge", or z-labels [1],
allowing the user to supply (possibly noisy) labels for specific
latent topic assignments.  Parallelized inference is done by the
Approximate Distributed (AD) [3] collapsed Gibbs sampling algorithm.

This code can also be used to do parallel inference for "standard"
LDA.

The implementation consists of Python extension modules written in C
and Cython.



BUILD/INSTALL

Building this module requires Python, NumPy, Cython, and a C compiler.
From the command-line, do:

% python setup.py install

(Note that if things are installed to non-standard locations, you may
need to make the appropriate changes in setup.py)

There is a simple example scipt showing how to use pSSLDA:

% python example/example.py



LOCAL INSTALL

If you do not have write access to your Python installation directories,
you will need to tell setup.py to install this module somewhere else.
For example:

% python setup.py install --prefix=~/local

will install the module under a subdirectory of your home directory called 
"local".

It may then be necessary to let Python know where that is by setting
the PYTHONPATH environment variable (e.g., in .bashrc or .cshrc).  For
our example this might involve adding something like the line:

setenv PYTHONPATH ~/local/lib/python2.5/site-packages



HOW TO USE

The commenting in the example.py script explains the meanings and
types of all input and return arguments.  The P parameter determines
how many parallel sampling processes to run - using a value larger
than the number of available cores is probably inadvisable.



LICENSE

This software is open-source, released under the terms of the GNU
General Public License version 3, or any later version of the GPL (see
LICENSE).



REFERENCES

[1] Andrzejewski, D. and Zhu, X. (2009).  Latent Dirichlet Allocation
with Topic-in-Set Knowledge. NAACL 2009 Workshop on Semi-supervised
Learning for NLP (NAACL-SSLNLP 2009)

[2] Blei, D. M., Ng, A. Y., and Jordan, M. I. (2003). Latent Dirichlet
Allocation.  Journal of Machine Learning Research (JMLR) 3
(Mar. 2003), 993-1022.

[3] Newman, D., Asuncion, A., Smyth, P., and Welling, M.  Distributed
Algorithms for Topic Models. Journal of Machine Learning Research
(JMLR) 10 (Aug. 2009), 1801-1828.



VERSION HISTORY
0.1     Initial release

psslda's People

Watchers

 avatar  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.