Class DiceAgreement
java.lang.Object
org.dkpro.statistics.agreement.AgreementMeasure
org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
org.dkpro.statistics.agreement.coding.DiceAgreement
- All Implemented Interfaces:
ICodingAgreementMeasure,ICodingItemSpecificAgreement,IAgreementMeasure,IItemSpecificAgreement<ICodingAnnotationItem>
public class DiceAgreement extends CodingAgreementMeasure implements ICodingItemSpecificAgreement
Implementation of a mean Dice agreement measure for calculating the inter-rater agreement for two
or more raters applying set-valued annotations. The measure is neither chance-corrected nor
weighted.
References:
References:
- Lee R. Dice. Measures of the amount of ecologic association between species. Ecology 36(3):297–302, 1945.
- Jean Véronis. A study of polysemy judgements and inter-annotator agreement. In Proceedings of SENSEVAL-1, 1998.
- Author:
- Tristan Miller
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DiceAgreement(ICodingAnnotationStudy study)Initializes the instance for the given annotation study. -
Method Summary
Modifier and Type Method Description doublecalculateItemAgreement(ICodingAnnotationItem item)Calculates the inter-rater agreement for the given annotation item.doubledoCalculateItemAgreement(ICodingAnnotationItem item)Calculates the inter-rater agreement for the given annotation item.Methods inherited from class org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
calculateObservedAgreement, ensureTwoRaters, warnIfMissingValuesMethods 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
-
Constructor Details
-
DiceAgreement
Initializes the instance for the given annotation study. The study should never be null.
-
-
Method Details
-
doCalculateItemAgreement
Calculates the inter-rater agreement for the given annotation item. This is the basic step that is performed for each item of an annotation study, when callingAgreementMeasure.calculateAgreement().- Overrides:
doCalculateItemAgreementin classCodingAgreementMeasure- Throws:
java.lang.NullPointerException- if the given item is null.
-
calculateItemAgreement
Calculates the inter-rater agreement for the given annotation item. This is the basic step that is performed for each item of an annotation study, when callingAgreementMeasure.calculateAgreement().- Specified by:
calculateItemAgreementin interfaceIItemSpecificAgreement<ICodingAnnotationItem>- Throws:
java.lang.NullPointerException- if the given item is null.- See Also:
IItemSpecificAgreement
-