Annotation

class graf.Annotation(label, features=None, id=None)[source]

An Annotation is the artifact being annotated. An annotation is a labelled feature structure. The annotation class/interface also provides convenience methods for setting and getting values from a feature structure.

__init__(label, features=None, id=None)[source]

Construct a new C{Annotation}.

Parameters:
  • label – C{str}
  • features – C{list} of C{Feature} objects