Class MASISetAnnotationDistanceFunction

java.lang.Object
org.dkpro.statistics.agreement.distance.MASISetAnnotationDistanceFunction
All Implemented Interfaces:
IDistanceFunction

public class MASISetAnnotationDistanceFunction
extends java.lang.Object
implements IDistanceFunction
Distance function for set-valued annotation studies based on the definition of Passonneau's (2006) MASI (Measuring Agreement on Set-valued Items). The measure is an improved version of SetAnnotationDistanceFunction

References:
  • Passonneau, R.J.: Computing reliability for coreference annotation. In: Proceedings of the Fourth International Conference on Language Resources and Evaluation, p. 1503–1506, 2004.
  • Passonneau, R.: Measuring agreement on set-valued items (MASI) for semantic and pragmatic annotation, in: Proceedings of the Fifth International Conference on Language Resources and Evaluation, p. 831–836, 2006.
Author:
Christian M. Meyer
See Also:
IDistanceFunction, SetAnnotation, SetAnnotationDistanceFunction
  • Constructor Summary

    Constructors 
    Constructor Description
    MASISetAnnotationDistanceFunction()  
  • Method Summary

    Modifier and Type Method Description
    double measureDistance​(IAnnotationStudy study, java.lang.Object category1, java.lang.Object category2)
    Returns a distance value for the given pair of categories used within the given annotation study.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • measureDistance

      public double measureDistance​(IAnnotationStudy study, java.lang.Object category1, java.lang.Object category2)
      Description copied from interface: IDistanceFunction
      Returns a distance value for the given pair of categories used within the given annotation study. Normally, the measure should return a distance of 0 if, and only if, the two categories are equal and a positive number otherwise.
      Specified by:
      measureDistance in interface IDistanceFunction