Class SetAnnotationDistanceFunction
java.lang.Object
org.dkpro.statistics.agreement.distance.SetAnnotationDistanceFunction
- All Implemented Interfaces:
IDistanceFunction
public class SetAnnotationDistanceFunction extends java.lang.Object implements IDistanceFunction
Distance function for set-valued annotation studies based on the definition of partial matching
(Passonneau, 2004). The distance function assumes categories of type
References:
SetAnnotation.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.
- Author:
- Christian M. Meyer
- See Also:
IDistanceFunction,SetAnnotation,MASISetAnnotationDistanceFunction
-
Constructor Summary
Constructors Constructor Description SetAnnotationDistanceFunction() -
Method Summary
Modifier and Type Method Description doublemeasureDistance(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.
-
Constructor Details
-
SetAnnotationDistanceFunction
public SetAnnotationDistanceFunction()
-
-
Method Details
-
measureDistance
public double measureDistance(IAnnotationStudy study, java.lang.Object category1, java.lang.Object category2)Description copied from interface:IDistanceFunctionReturns 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:
measureDistancein interfaceIDistanceFunction
-