Class TopicWords


  • public class TopicWords
    extends java.lang.Object
    Topic words factory for the given model
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicWords​(cc.mallet.topics.ParallelTopicModel model)
      Create Topic word factory for the given model
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> forTopic​(int topic)  
      java.util.List<java.lang.String> forTopic​(int topic, int number)  
      • Methods inherited from class java.lang.Object

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

      • TopicWords

        public TopicWords​(cc.mallet.topics.ParallelTopicModel model)
        Create Topic word factory for the given model
        Parameters:
        model -
    • Method Detail

      • forTopic

        public java.util.List<java.lang.String> forTopic​(int topic)
        Parameters:
        topic -
        Returns:
        key words for topic
      • forTopic

        public java.util.List<java.lang.String> forTopic​(int topic,
                                                         int number)
        Parameters:
        topic -
        number - of keywords required
        Returns:
        key words for topic