Class MalletLdaInferenceWrapper

java.lang.Object
cc.mallet.topics.TopicInferencer
org.dice_research.topicmodeling.algorithm.mallet.MalletLdaInferenceWrapper
All Implemented Interfaces:
Serializable

public class MalletLdaInferenceWrapper extends cc.mallet.topics.TopicInferencer
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double[]
     
    private static long
     
    protected double
     

    Fields inherited from class cc.mallet.topics.TopicInferencer

    alpha, beta, betaSum, numTopics, numTypes, random, tokensPerTopic, topicBits, topicMask, typeTopicCounts
  • Constructor Summary

    Constructors
    Constructor
    Description
    MalletLdaInferenceWrapper​(int[][] typeTopicCounts, int[] tokensPerTopic, cc.mallet.types.Alphabet alphabet, double[] alpha, double beta, double betaSum)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    getSampledTopicAssignments​(cc.mallet.types.Instance instance, int numIterations)
    This is a copy of TopicInferencer.getSampledDistribution(Instance, int, int, int) that returns the sequence of the single topic assignments for the given instance.

    Methods inherited from class cc.mallet.topics.TopicInferencer

    getSampledDistribution, read, setRandomSeed, writeInferredDistributions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • cachedCoefficients

      protected double[] cachedCoefficients
    • smoothingOnlyMass

      protected double smoothingOnlyMass
  • Constructor Details

    • MalletLdaInferenceWrapper

      public MalletLdaInferenceWrapper(int[][] typeTopicCounts, int[] tokensPerTopic, cc.mallet.types.Alphabet alphabet, double[] alpha, double beta, double betaSum)
  • Method Details

    • getSampledTopicAssignments

      public int[] getSampledTopicAssignments(cc.mallet.types.Instance instance, int numIterations)
      This is a copy of TopicInferencer.getSampledDistribution(Instance, int, int, int) that returns the sequence of the single topic assignments for the given instance.