Package org.aksw.palmetto
Class VectorBasedCoherence
java.lang.Object
org.aksw.palmetto.VectorBasedCoherence
- All Implemented Interfaces:
Coherence
This is a vector-based coherence measure.
- Author:
- Michael Röder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregationThe aggregator used to aggregate the single ratings of the subset pairs.protected VectorBasedConfirmationMeasureThe confirmation measure used to rate the single subset pairs.protected SegmentatorThe segmentation scheme used to create the subset pairs.protected VectorCreatorThe vector creator used to determine the vectors for the given words.protected WeighterDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionVectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure confirmation, Aggregation aggregation)VectorBasedCoherence(Segmentator segmentator, VectorCreator vectorCreator, VectorBasedConfirmationMeasure 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
-
segmentator
The segmentation scheme used to create the subset pairs. -
vectorCreator
The vector creator used to determine the vectors for the given words. -
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
-
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 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.
-