public class TopicModelProvider extends Object implements ITopicModelProvider
| Constructor and Description |
|---|
TopicModelProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToIndex(String docId,
List<de.julielab.topicmodeling.businessobjects.Topic> topicList) |
void |
allowSave() |
de.julielab.topicmodeling.businessobjects.Model |
getModel() |
Object[][] |
getTopWords(int numwords)
Return an array (one element for each topic) of arrays of words, which
are the most probable words for that topic in descending order.
|
void |
load(org.apache.uima.resource.DataResource dataResource) |
void |
saveModel() |
void |
setModelSavePath(String path) |
public void load(org.apache.uima.resource.DataResource dataResource)
throws org.apache.uima.resource.ResourceInitializationException
load in interface org.apache.uima.resource.SharedResourceObjectorg.apache.uima.resource.ResourceInitializationExceptionpublic Object[][] getTopWords(int numwords)
ITopicModelProvidergetTopWords in interface ITopicModelProvidernumwords - The maximum length of each topic's array of words (may be less).public de.julielab.topicmodeling.businessobjects.Model getModel()
getModel in interface ITopicModelProviderpublic void setModelSavePath(String path)
setModelSavePath in interface ITopicModelProviderpublic void allowSave()
allowSave in interface ITopicModelProviderpublic void saveModel()
throws IOException
saveModel in interface ITopicModelProviderIOExceptionpublic void addToIndex(String docId, List<de.julielab.topicmodeling.businessobjects.Topic> topicList)
addToIndex in interface ITopicModelProviderCopyright © 2019 JULIE Lab Jena, Germany. All rights reserved.