Class VectorBasedCoherence

java.lang.Object
org.aksw.palmetto.VectorBasedCoherence
All Implemented Interfaces:
Coherence

public class VectorBasedCoherence extends Object implements Coherence
This is a vector-based coherence measure.
Author:
Michael Röder
  • Field Details

    • 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 Details

  • Method Details

    • calculateCoherences

      public double[] calculateCoherences(String[][] wordsets)
      Description copied from interface: Coherence
      Calculates the coherence for the given set of top word sets.
      Specified by:
      calculateCoherences in interface Coherence
      Parameters:
      wordsets - set of topic top words
      Returns:
      a double array containing the coherences for the given top word sets.
    • getName

      public String getName()
      Description copied from interface: Coherence
      Returns the name of the coherence.
      Specified by:
      getName in interface Coherence
      Returns:
      the name of the coherence