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
      void addToIndex​(java.lang.String docId, java.util.List<de.julielab.topicmodeling.businessobjects.Topic> topicList)  
      void allowSave()  
      de.julielab.topicmodeling.businessobjects.Model getModel()  
      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.
      void saveModel()  
      void setModelSavePath​(java.lang.String path)  
      • Methods inherited from interface org.apache.uima.resource.SharedResourceObject

        load
    • 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).