Thrift module: spans

Module Services Data types Constants
spans AudioSpan
TextSpan

Data structures

Struct: TextSpan

Key Field Type Description Requiredness Default value
1 start i32 Start character, inclusive. required
2 ending i32 End character, exclusive required

A span of text within a single communication, identified by a pair
of zero-indexed character offsets into a Thrift string. Thrift strings
are encoded using UTF-8:
  https://thrift.apache.org/docs/types
The offsets are character-based, not byte-based - a character with a
three-byte UTF-8 representation only counts as one character.

NOTE: This span represents a best guess, or 'provenance':
it cannot be guaranteed that this text span matches the _exact_
text of the original document, but is the annotation's best
effort at such a representation.

Struct: AudioSpan

Key Field Type Description Requiredness Default value
1 start i64 Start time (in seconds) required
2 ending i64 End time (in seconds) required

A span of audio within a single communication, identified by a
pair of time offests. Time offsets are zero-based.

NOTE: This span represents a best guess, or 'provenance':
it cannot be guaranteed that this text span matches the _exact_
text of the original document, but is the annotation's best
effort at such a representation.