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
FieldsModifier and TypeFieldDescriptionprotected double[]private static longprotected doubleFields inherited from class cc.mallet.topics.TopicInferencer
alpha, beta, betaSum, numTopics, numTypes, random, tokensPerTopic, topicBits, topicMask, typeTopicCounts -
Constructor Summary
ConstructorsConstructorDescriptionMalletLdaInferenceWrapper(int[][] typeTopicCounts, int[] tokensPerTopic, cc.mallet.types.Alphabet alphabet, double[] alpha, double beta, double betaSum) -
Method Summary
Modifier and TypeMethodDescriptionint[]getSampledTopicAssignments(cc.mallet.types.Instance instance, int numIterations)This is a copy ofTopicInferencer.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
-
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 ofTopicInferencer.getSampledDistribution(Instance, int, int, int)that returns the sequence of the single topic assignments for the given instance.
-