public class PercentageAgreement extends CodingAgreementMeasure implements ICodingItemSpecificAgreement, ICategorySpecificAgreement
study
Constructor and Description |
---|
PercentageAgreement(ICodingAnnotationStudy study)
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 annotation category
based on the object's annotation study that has been passed to the
class constructor.
|
double |
calculateItemAgreement(ICodingAnnotationItem item)
Calculates the inter-rater agreement for the given annotation item.
|
calculateObservedAgreement, doCalculateItemAgreement, ensureTwoRaters, warnIfMissingValues
calculateAgreement, calculateExpectedAgreement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateAgreement
public PercentageAgreement(ICodingAnnotationStudy study)
public double calculateItemAgreement(ICodingAnnotationItem item)
AgreementMeasure.calculateAgreement()
.calculateItemAgreement
in interface IItemSpecificAgreement<ICodingAnnotationItem>
NullPointerException
- if the given item is null.IItemSpecificAgreement
public double calculateCategoryAgreement(Object category)
calculateCategoryAgreement
in interface ICategorySpecificAgreement
NullPointerException
- if the study is null or the given
category is null.ArrayIndexOutOfBoundsException
- if the study does not contain
the given category.ArithmeticException
- if the study does not
contain annotations for the given category.ICategorySpecificAgreement
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.