An annotator which produces only one kind of output can skip this check since is made sure that the set only contains types/features which the annotator is capable of producing and would never call an annotator that is not required at all. So this set is most relevant for multi-purpose annotators to determine which of their various functions are required for this specific document.
Public Types | |
typedef std::set< TypeOrFeature > | TyTypeOrFeatureSTLSet |
Public Member Functions | |
bool | shouldBeCreatedByAnnotator (TypeOrFeature const &crTypeOrFeature) const |
An annotator can call this method to determine whether it should produce the specified TypeOrFeature. | |
TyTypeOrFeatureSTLSet const & | getTypeOrFeatureSTLSet () const |
void | clear () |
size_t | getSize () const |
void | add (TypeOrFeature const &crTypeOrFeature) |
void | remove (TypeOrFeature const &crTypeOrFeature) |
bool | contains (TypeOrFeature const &crTypeOrFeature) const |
void | print (std::ostream &os) const |
|
|
|
An annotator can call this method to determine whether it should produce the specified TypeOrFeature.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|