Package cc.mallet.topics
Class JSONTopicReports
- java.lang.Object
-
- cc.mallet.topics.AbstractTopicReports
-
- cc.mallet.topics.JSONTopicReports
-
- All Implemented Interfaces:
TopicReports
public class JSONTopicReports extends AbstractTopicReports implements TopicReports
-
-
Constructor Summary
Constructors Constructor Description JSONTopicReports(ParallelTopicModel model)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
void
printDenseDocumentTopics(java.io.PrintWriter out)
void
printDocumentTopics(java.io.PrintWriter out, double threshold, int max)
void
printSamplingState(java.io.PrintWriter out)
void
printSummary(java.io.PrintWriter out, int numWords)
void
printTopicDocuments(java.io.PrintWriter out, int max)
void
printTopicPhrases(java.io.PrintWriter out, int numWords)
void
printTopicWordWeights(java.io.PrintWriter out)
void
printTypeTopicCounts(java.io.PrintWriter out)
-
Methods inherited from class cc.mallet.topics.AbstractTopicReports
printDenseDocumentTopics, printDocumentTopics, printSamplingState, printSummary, printTopicDocuments, printTopicPhrases, printTopicWordWeights, printTypeTopicCounts
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.mallet.topics.TopicReports
printDenseDocumentTopics, printDocumentTopics, printSamplingState, printSummary, printTopicDocuments, printTopicPhrases, printTopicWordWeights, printTypeTopicCounts
-
-
-
-
Constructor Detail
-
JSONTopicReports
public JSONTopicReports(ParallelTopicModel model)
-
-
Method Detail
-
printSamplingState
public void printSamplingState(java.io.PrintWriter out) throws java.io.IOException
- Specified by:
printSamplingState
in interfaceTopicReports
- Overrides:
printSamplingState
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printTopicDocuments
public void printTopicDocuments(java.io.PrintWriter out, int max) throws java.io.IOException
- Specified by:
printTopicDocuments
in interfaceTopicReports
- Overrides:
printTopicDocuments
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printDocumentTopics
public void printDocumentTopics(java.io.PrintWriter out, double threshold, int max) throws java.io.IOException
- Specified by:
printDocumentTopics
in interfaceTopicReports
- Overrides:
printDocumentTopics
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printDenseDocumentTopics
public void printDenseDocumentTopics(java.io.PrintWriter out) throws java.io.IOException
- Specified by:
printDenseDocumentTopics
in interfaceTopicReports
- Overrides:
printDenseDocumentTopics
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printTopicWordWeights
public void printTopicWordWeights(java.io.PrintWriter out) throws java.io.IOException
- Specified by:
printTopicWordWeights
in interfaceTopicReports
- Overrides:
printTopicWordWeights
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printTypeTopicCounts
public void printTypeTopicCounts(java.io.PrintWriter out) throws java.io.IOException
- Specified by:
printTypeTopicCounts
in interfaceTopicReports
- Overrides:
printTypeTopicCounts
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printTopicPhrases
public void printTopicPhrases(java.io.PrintWriter out, int numWords) throws java.io.IOException
- Specified by:
printTopicPhrases
in interfaceTopicReports
- Overrides:
printTopicPhrases
in classAbstractTopicReports
- Throws:
java.io.IOException
-
printSummary
public void printSummary(java.io.PrintWriter out, int numWords) throws java.io.IOException
- Specified by:
printSummary
in interfaceTopicReports
- Overrides:
printSummary
in classAbstractTopicReports
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-