Class DMRTopicModel

    • Field Detail

      • parametersFilename

        public java.lang.String parametersFilename
      • saveParametersInterval

        public int saveParametersInterval
    • Constructor Detail

      • DMRTopicModel

        public DMRTopicModel​(int numberOfTopics)
    • Method Detail

      • estimate

        public void estimate()
                      throws java.io.IOException
        Overrides:
        estimate in class ParallelTopicModel
        Throws:
        java.io.IOException
      • cacheAlphas

        public void cacheAlphas​(Instance instance,
                                int docIndex)
        Set alpha based on features in an instance
      • learnParameters

        public void learnParameters()
      • printTopWords

        public void printTopWords​(java.io.PrintStream out,
                                  int numWords,
                                  boolean usingNewLines)
        Overrides:
        printTopWords in class ParallelTopicModel
      • writeParameters

        public void writeParameters​(java.io.File parameterFile)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getDmrParameters

        public MaxEnt getDmrParameters()
      • read

        public static DMRTopicModel read​(java.io.File f)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException