Package org.aksw.palmetto
Class DirectConfirmationBasedCoherence
java.lang.Object
org.aksw.palmetto.DirectConfirmationBasedCoherence
- All Implemented Interfaces:
Coherence
This type of coherence measure is a non-vector-based coherence. It uses only
the probabilities derived from the data source to caluclate the coherence.
- Author:
- Michael Röder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregationThe aggregator used to aggregate the single ratings of the subset pairs.protected DirectConfirmationMeasureThe confirmation measure used to rate the single subset pairs.protected ProbabilityEstimatorThe probability estimator used to determine the probabilities.protected SegmentatorThe segmentation used to create the subset pairs.protected WeighterDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation)DirectConfirmationBasedCoherence(Segmentator segmentation, ProbabilityEstimator probEstimator, DirectConfirmationMeasure confirmation, Aggregation aggregation, Weighter weighter)Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]calculateCoherences(String[][] wordsets)Calculates the coherence for the given set of top word sets.getName()Returns the name of the coherence.
-
Field Details
-
segmentation
The segmentation used to create the subset pairs. -
probEstimator
The probability estimator used to determine the probabilities. -
confirmation
The confirmation measure used to rate the single subset pairs. -
aggregation
The aggregator used to aggregate the single ratings of the subset pairs. -
weighter
Deprecated.
-
-
Constructor Details
-
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 Details
-
calculateCoherences
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.
-
getName
Description copied from interface:CoherenceReturns the name of the coherence.
-