public abstract class AnnotationStudy extends Object implements IAnnotationStudy
IAnnotationStudy interface.
Abstract base class for coding and unitizing annotation studies.| Modifier and Type | Field and Description |
|---|---|
protected Set<Object> |
categories |
protected ArrayList<String> |
raters |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationStudy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(Object category)
Adds the given category to the set of possible annotation labels.
|
int |
addRater(String name)
Add a rater with the given name.
|
int |
findRater(String name)
Find the index of the rater with the given name.
|
Iterable<Object> |
getCategories()
Returns an iterator over all annotation categories within the study.
|
int |
getCategoryCount()
Returns the number of annotation categories in the study.
|
int |
getRaterCount()
Returns the number of raters participating in this study.
|
boolean |
isDichotomous()
Returns true if, and only if, the categories defined by the study yield
a dichotomy (i.e., there are exactly two categories).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnitCountpublic int addRater(String name)
IAnnotationUnit. The first rater receives index 0.
Note that adding names for the raters is optional.public int findRater(String name)
public int getRaterCount()
IAnnotationStudygetRaterCount in interface IAnnotationStudypublic void addCategory(Object category)
NullPointerException - if the specified category is null.public Iterable<Object> getCategories()
IAnnotationStudygetCategories in interface IAnnotationStudypublic int getCategoryCount()
IAnnotationStudygetCategoryCount in interface IAnnotationStudypublic boolean isDichotomous()
IAnnotationStudyisDichotomous in interface IAnnotationStudyCopyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.