Interface ITopicModelProvider
-
- All Superinterfaces:
org.apache.uima.resource.SharedResourceObject
- All Known Implementing Classes:
TopicModelProvider
public interface ITopicModelProvider extends org.apache.uima.resource.SharedResourceObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToIndex(java.lang.String docId, java.util.List<de.julielab.topicmodeling.businessobjects.Topic> topicList)voidallowSave()de.julielab.topicmodeling.businessobjects.ModelgetModel()java.lang.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.voidsaveModel()voidsetModelSavePath(java.lang.String path)
-
-
-
Method Detail
-
getModel
de.julielab.topicmodeling.businessobjects.Model getModel()
-
setModelSavePath
void setModelSavePath(java.lang.String path)
-
allowSave
void allowSave()
-
saveModel
void saveModel() throws java.io.IOException- Throws:
java.io.IOException
-
addToIndex
void addToIndex(java.lang.String docId, java.util.List<de.julielab.topicmodeling.businessobjects.Topic> topicList)
-
getTopWords
java.lang.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. These are returned as Objects, but will probably be Strings.- Parameters:
numwords- The maximum length of each topic's array of words (may be less).
-
-