public class AnnotationUnit extends Object implements IAnnotationUnit
IAnnotationUnit
holding the rater's
index and the category that the rater assigned to this unit.IAnnotationStudy
,
IAnnotationUnit
Modifier and Type | Field and Description |
---|---|
protected Object |
category |
protected int |
raterIdx |
Constructor and Description |
---|
AnnotationUnit(int raterIdx,
Object category)
Initializes the annotation unit with the given category as the
annotation by the rater with the specified index.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCategory()
Returns the category assigned to this unit by one of the raters.
|
int |
getRaterIdx()
Returns the index of the rater who coded this unit (in case of a coding
study) or defined the boundaries of this unit (in case of a
unitizing study).
|
String |
toString() |
protected int raterIdx
protected Object category
public AnnotationUnit(int raterIdx, Object category)
public int getRaterIdx()
IAnnotationUnit
getRaterIdx
in interface IAnnotationUnit
public Object getCategory()
IAnnotationUnit
getCategory
in interface IAnnotationUnit
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.