Package org.dkpro.statistics.agreement
Class DisagreementMeasure
java.lang.Object
org.dkpro.statistics.agreement.DisagreementMeasure
- All Implemented Interfaces:
IAgreementMeasure
- Direct Known Subclasses:
UnitizingAgreementMeasure,WeightedAgreement
public abstract class DisagreementMeasure extends java.lang.Object implements IAgreementMeasure
Default implementation of the
References:
IAgreementMeasure interface providing computational hooks
for calculating the observed and the expected disagreement. The values for observed and expected
disagreement are combined using Krippendorff's (1980) 1 - (D_O / D_E) formula
(where D_O denotes the observed disagreement and D_E denotes the expected disagreement. See also
AgreementMeasure for the analogous definition of a measure based on the observed and
expected agreement.References:
- Krippendorff, K.: Content Analysis: An Introduction to Its Methodology. Beverly Hills, CA: Sage Publications, 1980.
- Author:
- Christian M. Meyer
- See Also:
IAgreementMeasure,AgreementMeasure
-
Constructor Summary
Constructors Constructor Description DisagreementMeasure() -
Method Summary
Modifier and Type Method Description doublecalculateAgreement()Calculates the inter-rater agreement for the annotation study that was passed to the class constructor and the currently assigned distance function.protected doublecalculateExpectedDisagreement()protected abstract doublecalculateObservedDisagreement()
-
Constructor Details
-
DisagreementMeasure
public DisagreementMeasure()
-
-
Method Details
-
calculateAgreement
public double calculateAgreement()Calculates the inter-rater agreement for the annotation study that was passed to the class constructor and the currently assigned distance function.- Specified by:
calculateAgreementin interfaceIAgreementMeasure- Throws:
java.lang.NullPointerException- if the study is null.java.lang.ArithmeticException- if the study does not contain any item or the number of raters is smaller than 2.
-
calculateObservedDisagreement
protected abstract double calculateObservedDisagreement() -
calculateExpectedDisagreement
protected double calculateExpectedDisagreement()
-