3

Hi i have to do topic modeling using Mallet Java API but i am new to coding so i am finding it real difficult to understand the Java libraries and use them. Does anyone has some sample code where they do topic modeling using the API which can be used to build upon?

Chris Dennett
  • 22,412
  • 8
  • 58
  • 84
Yogesh Sharma
  • 61
  • 3
  • 5

3 Answers3

2

For an example showing how to use the Java API to import data, train models, and infer topics for new documents, see the topic model developer's guide.

John Lehmann
  • 7,975
  • 4
  • 58
  • 71
1

You can also refer to some examples here: ./mallet-2.0.7/src/cc/mallet/examples

Raullen Chai
  • 315
  • 2
  • 2
1

You can take a look at the tutorial slides from page 97 onwards here

Also, take a look at my answer to this question here

c-chavez
  • 7,237
  • 5
  • 35
  • 49