Class HubertKappaAgreement
java.lang.Object
org.dkpro.statistics.agreement.AgreementMeasure
org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
org.dkpro.statistics.agreement.coding.HubertKappaAgreement
- All Implemented Interfaces:
ICodingAgreementMeasure,IAgreementMeasure
public class HubertKappaAgreement extends CodingAgreementMeasure
- Conger, A.J.: Integration and generalization of kappas for multiple raters. Psychological Bulletin 88(2):322-328, 1980.
- Davies, M. & Fleiss, J.L.: Measuring agreement for multinomial data. Biometrics 38(4):1047–1051, 1982.
- Hubert, L.: Kappa revisited. Psychological Bulletin 84(2):289-297, 1977.
- Author:
- Christian M. Meyer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HubertKappaAgreement(ICodingAnnotationStudy study)Initializes the instance for the given annotation study. -
Method Summary
Modifier and Type Method Description doublecalculateExpectedAgreement()Calculates the expected inter-rater agreement that assumes the same distribution for all raters and annotations.Methods inherited from class org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
calculateObservedAgreement, doCalculateItemAgreement, ensureTwoRaters, warnIfMissingValuesMethods 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
-
Constructor Details
-
HubertKappaAgreement
Initializes the instance for the given annotation study. The study should never be null.
-
-
Method Details
-
calculateExpectedAgreement
public double calculateExpectedAgreement()Calculates the expected inter-rater agreement that assumes the same distribution for all raters and annotations.- Overrides:
calculateExpectedAgreementin classAgreementMeasure- Throws:
java.lang.NullPointerException- if the annotation study is null.java.lang.ArithmeticException- if there are no items in the annotation study.
-