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, wait
getUnitCount
public 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()
IAnnotationStudy
getRaterCount
in interface IAnnotationStudy
public void addCategory(Object category)
NullPointerException
- if the specified category is null.public Iterable<Object> getCategories()
IAnnotationStudy
getCategories
in interface IAnnotationStudy
public int getCategoryCount()
IAnnotationStudy
getCategoryCount
in interface IAnnotationStudy
public boolean isDichotomous()
IAnnotationStudy
isDichotomous
in interface IAnnotationStudy
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.