Class LDA

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class LDA
    extends java.lang.Object
    implements java.io.Serializable
    Deprecated.
    Use ParallelTopicModel instead.
    Latent Dirichlet Allocation.
    Author:
    Andrew McCallum
    See Also:
    Serialized Form
    • Constructor Detail

      • LDA

        public LDA​(int numberOfTopics)
        Deprecated.
      • LDA

        public LDA​(int numberOfTopics,
                   double alphaSum,
                   double beta)
        Deprecated.
    • Method Detail

      • estimate

        public void estimate​(InstanceList documents,
                             int numIterations,
                             int showTopicsInterval,
                             int outputModelInterval,
                             java.lang.String outputModelFilename,
                             Randoms r)
        Deprecated.
      • addDocuments

        public void addDocuments​(InstanceList additionalDocuments,
                                 int numIterations,
                                 int showTopicsInterval,
                                 int outputModelInterval,
                                 java.lang.String outputModelFilename,
                                 Randoms r)
        Deprecated.
      • estimate

        public void estimate​(int docIndexStart,
                             int docIndexLength,
                             int numIterations,
                             int showTopicsInterval,
                             int outputModelInterval,
                             java.lang.String outputModelFilename,
                             Randoms r)
        Deprecated.
      • sampleTopicsForAllDocs

        public void sampleTopicsForAllDocs​(Randoms r)
        Deprecated.
      • sampleTopicsForDocs

        public void sampleTopicsForDocs​(int start,
                                        int length,
                                        Randoms r)
        Deprecated.
      • getDocTopicCounts

        public int[][] getDocTopicCounts()
        Deprecated.
      • getTypeTopicCounts

        public int[][] getTypeTopicCounts()
        Deprecated.
      • getTokensPerTopic

        public int[] getTokensPerTopic()
        Deprecated.
      • printTopWords

        public void printTopWords​(int numWords,
                                  boolean useNewLines)
        Deprecated.
      • printDocumentTopics

        public void printDocumentTopics​(java.io.File f)
                                 throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • printDocumentTopics

        public void printDocumentTopics​(java.io.PrintWriter pw)
        Deprecated.
      • printDocumentTopics

        public void printDocumentTopics​(java.io.PrintWriter pw,
                                        double threshold,
                                        int max)
        Deprecated.
      • printState

        public void printState​(java.io.File f)
                        throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • printState

        public void printState​(java.io.PrintWriter pw)
        Deprecated.
      • write

        public void write​(java.io.File f)
        Deprecated.
      • getInstanceList

        public InstanceList getInstanceList()
        Deprecated.
      • main

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