Package org.aksw.palmetto
Class VectorBasedCoherence
- java.lang.Object
-
- org.aksw.palmetto.VectorBasedCoherence
-
-
Field Summary
Fields Modifier and Type Field Description protected AggregationaggregationThe aggregator used to aggregate the single ratings of the subset pairs.protected VectorBasedConfirmationMeasureconfirmationThe confirmation measure used to rate the single subset pairs.protected SegmentatorsegmentatorThe segmentation scheme used to create the subset pairs.protected VectorCreatorvectorCreatorThe vector creator used to determine the vectors for the given words.protected WeighterweighterDeprecated.
-
Constructor Summary
Constructors Constructor Description VectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure confirmation, Aggregation aggregation)VectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure 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
-
segmentator
protected Segmentator segmentator
The segmentation scheme used to create the subset pairs.
-
vectorCreator
protected VectorCreator vectorCreator
The vector creator used to determine the vectors for the given words.
-
confirmation
protected VectorBasedConfirmationMeasure 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
-
VectorBasedCoherence
@Deprecated public VectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure confirmation, Aggregation aggregation, Weighter weighter)
Deprecated.
-
VectorBasedCoherence
public VectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure 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.
-
-