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, setDistanceFunction
calculateAgreement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateAgreement
public KrippendorffAlphaAgreement(ICodingAnnotationStudy study, IDistanceFunction distanceFunction)
public double calculateObservedDisagreement()
IChanceCorrectedDisagreement
calculateObservedDisagreement
in interface IChanceCorrectedDisagreement
calculateObservedDisagreement
in class DisagreementMeasure
public double calculateExpectedDisagreement()
calculateExpectedDisagreement
in interface IChanceCorrectedDisagreement
calculateExpectedDisagreement
in class DisagreementMeasure
NullPointerException
- if the annotation study is null.ArithmeticException
- if there are no items or raters in the
annotation study.public double calculateItemAgreement(ICodingAnnotationItem item)
IItemSpecificAgreement
calculateItemAgreement
in interface IItemSpecificAgreement<ICodingAnnotationItem>
IItemSpecificAgreement
public double calculateCategoryAgreement(Object category)
ICategorySpecificAgreement
calculateCategoryAgreement
in interface ICategorySpecificAgreement
ICategorySpecificAgreement
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.