Class TopicModelProvider

    • Method Summary

      All Methods Instance Methods Concrete 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 load​(org.apache.uima.resource.DataResource dataResource)  
      void saveModel()  
      void setModelSavePath​(java.lang.String path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TopicModelProvider

        public TopicModelProvider()
    • Method Detail

      • load

        public void load​(org.apache.uima.resource.DataResource dataResource)
                  throws org.apache.uima.resource.ResourceInitializationException
        Specified by:
        load in interface org.apache.uima.resource.SharedResourceObject
        Throws:
        org.apache.uima.resource.ResourceInitializationException
      • getTopWords

        public java.lang.Object[][] getTopWords​(int numwords)
        Description copied from interface: ITopicModelProvider
        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.
        Specified by:
        getTopWords in interface ITopicModelProvider
        Parameters:
        numwords - The maximum length of each topic's array of words (may be less).
      • getModel

        public de.julielab.topicmodeling.businessobjects.Model getModel()
        Specified by:
        getModel in interface ITopicModelProvider
      • saveModel

        public void saveModel()
                       throws java.io.IOException
        Specified by:
        saveModel in interface ITopicModelProvider
        Throws:
        java.io.IOException
      • addToIndex

        public void addToIndex​(java.lang.String docId,
                               java.util.List<de.julielab.topicmodeling.businessobjects.Topic> topicList)
        Specified by:
        addToIndex in interface ITopicModelProvider