concrete.spans.ttypes module¶
-
class
concrete.spans.ttypes.
AudioSpan
(start=None, ending=None)¶ Bases:
object
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.
-
- start
Start time (in seconds)
-
- ending
End time (in seconds)
-
read
(iprot)¶
-
thrift_spec
= (None, (1, 10, 'start', None, None), (2, 10, 'ending', None, None))¶
-
validate
()¶
-
write
(oprot)¶
-
-
class
concrete.spans.ttypes.
TextSpan
(start=None, ending=None)¶ Bases:
object
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:
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.
-
- start
Start character, inclusive.
-
- ending
End character, exclusive
-
read
(iprot)¶
-
thrift_spec
= (None, (1, 8, 'start', None, None), (2, 8, 'ending', None, None))¶
-
validate
()¶
-
write
(oprot)¶
-