2

Hi i have to do topic modeling using Mallet Java API but i am new to Mallet so i am finding it real difficult to understand the Mallet libraries and use them. Does anyone know any place where there might be some source code for topic modeling to understand the libraries?

MARK
  • 2,302
  • 4
  • 25
  • 44
Yogesh Sharma
  • 61
  • 3
  • 5

1 Answers1

4

Did you check out the MALLET Topic Modeling developer's guide? It contains an example file that walks you through some of the options:

http://mallet.cs.umass.edu/topics-devel.php

Rather than referencing the example file on the web page, download the latest MALLET development version (2.0.7rc1 as of this writing) and look in:

src/cc/mallet/examples/TopicModel.java,

The web page doesn't contain exactly the same script, and the distribution version is more hepful.

If you prefer not to touch Java at all you can do pretty well using the command line versions of the tools that don't require any Java coding:

http://mallet.cs.umass.edu/topics.php

Not all the options have command line flags to set them, but you can still do the basics.

mrjf
  • 1,117
  • 1
  • 12
  • 22
  • Also, take a look at the tutorial slides from page 97 onwards: http://mallet.cs.umass.edu/mallet-tutorial.pdf – c-chavez Jun 05 '17 at 11:12