org.knowceans.topics.simple
Class LdaTopics
java.lang.Object
org.knowceans.topics.simple.LdaTopics
public class LdaTopics
- extends java.lang.Object
LdaTopics shows the topics of an LDA-like model
- Author:
- gregor
Constructor Summary |
LdaTopics(java.lang.String filebase,
double[][] theta,
double[][] phi)
|
Method Summary |
java.lang.String |
printDocument(int m,
int morig,
int topics,
boolean label,
boolean author)
create string with document topic information |
java.lang.String |
printTopic(int k,
int terms)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdaTopics
public LdaTopics(java.lang.String filebase,
double[][] theta,
double[][] phi)
printDocument
public java.lang.String printDocument(int m,
int morig,
int topics,
boolean label,
boolean author)
- create string with document topic information
- Parameters:
m
- doc id in modelmorig
- doc id in original corpustopics
- how many of the most likely topics to printlabel
- resolve categoryauthor
- resolve authorship
- Returns:
printTopic
public java.lang.String printTopic(int k,
int terms)