Class CodingAgreementMeasure
java.lang.Object
org.dkpro.statistics.agreement.AgreementMeasure
org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
- All Implemented Interfaces:
ICodingAgreementMeasure,IAgreementMeasure
- Direct Known Subclasses:
BennettSAgreement,CohenKappaAgreement,DiceAgreement,FleissKappaAgreement,HubertKappaAgreement,MaxPercentageAgreement,PercentageAgreement,RandolphKappaAgreement,ScottPiAgreement
public abstract class CodingAgreementMeasure extends AgreementMeasure implements ICodingAgreementMeasure
Abstract base class of agreement measures for
ICodingAnnotationStudys.- Author:
- Christian M. Meyer
-
Field Summary
Fields Modifier and Type Field Description protected ICodingAnnotationStudystudy -
Constructor Summary
Constructors Constructor Description CodingAgreementMeasure(ICodingAnnotationStudy study)Initializes the instance for the given annotation study. -
Method Summary
Modifier and Type Method Description doublecalculateObservedAgreement()protected doubledoCalculateItemAgreement(ICodingAnnotationItem item)protected voidensureTwoRaters()protected voidwarnIfMissingValues()Methods inherited from class org.dkpro.statistics.agreement.AgreementMeasure
calculateAgreement, calculateExpectedAgreementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dkpro.statistics.agreement.IAgreementMeasure
calculateAgreement
-
Field Details
-
Constructor Details
-
CodingAgreementMeasure
Initializes the instance for the given annotation study. The study should never be null.
-
-
Method Details
-
calculateObservedAgreement
public double calculateObservedAgreement()- Specified by:
calculateObservedAgreementin classAgreementMeasure
-
doCalculateItemAgreement
-
ensureTwoRaters
protected void ensureTwoRaters() -
warnIfMissingValues
protected void warnIfMissingValues()
-