org.knowceans.topics.simple
Class LdaTopics

java.lang.Object
  extended by 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
 

Constructor Detail

LdaTopics

public LdaTopics(java.lang.String filebase,
                 double[][] theta,
                 double[][] phi)
Method Detail

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 model
morig - doc id in original corpus
topics - how many of the most likely topics to print
label - resolve category
author - resolve authorship
Returns:

printTopic

public java.lang.String printTopic(int k,
                                   int terms)