Skip to content

The C implementation of Labeled-LDA with collapsed gibbs sampling estimation.

Notifications You must be signed in to change notification settings

suzuki-shm/Labeled-LDA

 
 

Repository files navigation

Labeled-LDA

The C implementation of Labeled-LDA with collapsed gibbs sampling estimation.

Original file:15.11.30 HIGASHI Koichi https://github.com/khigashi1987/Labeled-LDA

For python library:16.1.4 Shinya SUZUKI

This program makes llda.so to use in python with ctypes.

Usage

  • git clone, and make

  • call llda.so by ctypes from python as below

from ctypes import *
llda = CDLL("./llda.so")
llda.calculate.argtypes = [c_int, c_double, c_double, c_char_p, c_char_p, c_char_p]
llda.calculate(30, 0.1, 0.1, "corpus_word.txt", "corpus_label.txt", "output")

About

The C implementation of Labeled-LDA with collapsed gibbs sampling estimation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.0%
  • Makefile 2.3%
  • C++ 0.7%