Annotation API for Python#

class eot.wowool.annotation.Annotation#

Annotation is the base class for all annotations

__init__(begin_offset: int, end_offset: int)#

Initialize an Annotation instance

Parameters
  • begin_offset (int) – Begin offset of the annotation

  • end_offset (int) – End offset of the annotation

Return type

Annotation

property begin_offset: int#
Returns

The begin offset of the annotation

Type

int

property end_offset: int#
Returns

The end offset of the annotation

Type

int

property is_concept: bool#
Returns

Whether the annotation is a Concept

Return type

bool

property is_sentence: bool#
Returns

Whether the annotation is a Sentence

Return type

bool

property is_token: bool#
Returns

Whether the annotation is a Token

Return type

bool

See also the corresponding JSON schema.