Package org.aksw.palmetto
Class DirectConfirmationBasedCoherence
- java.lang.Object
-
- org.aksw.palmetto.DirectConfirmationBasedCoherence
-
-
Field Summary
Fields Modifier and Type Field Description protected AggregationaggregationThe aggregator used to aggregate the single ratings of the subset pairs.protected DirectConfirmationMeasureconfirmationThe confirmation measure used to rate the single subset pairs.protected ProbabilityEstimatorprobEstimatorThe probability estimator used to determine the probabilities.protected SegmentatorsegmentationThe segmentation used to create the subset pairs.protected WeighterweighterDeprecated.
-
Constructor Summary
Constructors Constructor Description DirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation)DirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation, Weighter weighter)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]calculateCoherences(String[][] wordsets)Calculates the coherence for the given set of top word sets.StringgetName()Returns the name of the coherence.
-
-
-
Field Detail
-
segmentation
protected Segmentator segmentation
The segmentation used to create the subset pairs.
-
probEstimator
protected ProbabilityEstimator probEstimator
The probability estimator used to determine the probabilities.
-
confirmation
protected DirectConfirmationMeasure confirmation
The confirmation measure used to rate the single subset pairs.
-
aggregation
protected Aggregation aggregation
The aggregator used to aggregate the single ratings of the subset pairs.
-
weighter
@Deprecated protected Weighter weighter
Deprecated.
-
-
Constructor Detail
-
DirectConfirmationBasedCoherence
@Deprecated public DirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation, Weighter weighter)
Deprecated.
-
DirectConfirmationBasedCoherence
public DirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation)
-
-
Method Detail
-
calculateCoherences
public double[] calculateCoherences(String[][] wordsets)
Description copied from interface:CoherenceCalculates the coherence for the given set of top word sets.- Specified by:
calculateCoherencesin interfaceCoherence- Parameters:
wordsets- set of topic top words- Returns:
- a double array containing the coherences for the given top word sets.
-
-