public class CodingAnnotationItem extends Object implements ICodingAnnotationItem
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.CodingAnnotationStudy
,
ICodingAnnotationItem
Modifier and Type | Field and Description |
---|---|
protected int |
nonNullCount |
protected List<IAnnotationUnit> |
units |
Modifier | Constructor and Description |
---|---|
protected |
CodingAnnotationItem(int unitCount)
Initializes the item for the given number of units.
|
Modifier and Type | Method and 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.
|
Iterable<IAnnotationUnit> |
getUnits()
Returns all coding units for this annotation item (i.e.,
the categories assigned by the individual raters).
|
String |
toString() |
protected List<IAnnotationUnit> units
protected int nonNullCount
protected CodingAnnotationItem(int unitCount)
CodingAnnotationStudy.addItem(Object...)
should be
used to define the annotation units of an item.protected void addUnit(IAnnotationUnit unit)
CodingAnnotationStudy.addItem(Object...)
should be
used to define the annotation units of an item.public IAnnotationUnit getUnit(int raterIdx)
ICodingAnnotationItem
getUnit
in interface ICodingAnnotationItem
public Iterable<IAnnotationUnit> getUnits()
ICodingAnnotationItem
getUnits
in interface ICodingAnnotationItem
public int getRaterCount()
ICodingAnnotationItem
getRaterCount
in interface ICodingAnnotationItem
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.