Class DirectConfirmationBasedCoherence

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

public class DirectConfirmationBasedCoherence extends Object implements 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 Details

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