Class CodingAnnotationItem

java.lang.Object
org.dkpro.statistics.agreement.coding.CodingAnnotationItem
All Implemented Interfaces:
java.io.Serializable, ICodingAnnotationItem, IAnnotationItem

public class CodingAnnotationItem
extends java.lang.Object
implements ICodingAnnotationItem
Default implementation of ICodingAnnotationItem holding the set of annotation units for this item (i.e., the categories assigned to this item by all raters). When using the default implementation, it is recommended to use CodingAnnotationStudy.addItem(Object...) instead of instantiating this type.
Author:
Christian M. Meyer
See Also:
CodingAnnotationStudy, ICodingAnnotationItem, Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int nonNullCount  
    protected java.util.List<IAnnotationUnit> units  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected CodingAnnotationItem​(int unitCount)
    Initializes the item for the given number of units.
  • Method Summary

    Modifier and Type Method Description
    protected void addUnit​(IAnnotationUnit unit)
    Adds the given unit to the coding study.
    int getRaterCount()
    Returns the number of raters who annotated this item with a non-null category.
    IAnnotationUnit getUnit​(int raterIdx)
    Returns the annotation unit of the rater with the specified index.
    java.lang.Iterable<IAnnotationUnit> getUnits()
    Returns all coding units for this annotation item (i.e., the categories assigned by the individual raters).
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait