public class KrippendorffAlphaAgreement extends WeightedAgreement implements IChanceCorrectedDisagreement, ICategorySpecificAgreement, ICodingItemSpecificAgreement
IDistanceFunction
instance needs to be assigned.| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Map<Object,Double>> |
coincidenceMatrix |
distanceFunction, study| Constructor and Description |
|---|
KrippendorffAlphaAgreement(ICodingAnnotationStudy study,
IDistanceFunction distanceFunction)
Initializes the instance for the given annotation study.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateCategoryAgreement(Object category)
Calculates the inter-rater agreement for the given category.
|
double |
calculateExpectedDisagreement()
Calculates the expected inter-rater agreement using the defined
distance function to infer the assumed probability distribution.
|
double |
calculateItemAgreement(ICodingAnnotationItem item)
Calculates the inter-rater agreement for the given annotation item.
|
double |
calculateObservedDisagreement()
Returns the observed disagreement of an annotation study.
|
ensureDistanceFunction, getDistanceFunction, setDistanceFunctioncalculateAgreementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateAgreementpublic KrippendorffAlphaAgreement(ICodingAnnotationStudy study, IDistanceFunction distanceFunction)
public double calculateObservedDisagreement()
IChanceCorrectedDisagreementcalculateObservedDisagreement in interface IChanceCorrectedDisagreementcalculateObservedDisagreement in class DisagreementMeasurepublic double calculateExpectedDisagreement()
calculateExpectedDisagreement in interface IChanceCorrectedDisagreementcalculateExpectedDisagreement in class DisagreementMeasureNullPointerException - if the annotation study is null.ArithmeticException - if there are no items or raters in the
annotation study.public double calculateItemAgreement(ICodingAnnotationItem item)
IItemSpecificAgreementcalculateItemAgreement in interface IItemSpecificAgreement<ICodingAnnotationItem>IItemSpecificAgreementpublic double calculateCategoryAgreement(Object category)
ICategorySpecificAgreementcalculateCategoryAgreement in interface ICategorySpecificAgreementICategorySpecificAgreementCopyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.