concrete.spans package¶
-
class
concrete.spans.ttypes.
AudioSpan
(start=None, ending=None)¶ Bases:
object
A span of audio within a single communication, identified by apair 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 besteffort at such a representation.Attributes:- start: Start time (in seconds)- ending: End time (in seconds)-
read
(iprot)¶
-
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 pairof zero-indexed character offsets into a Thrift string. Thrift stringsare encoded using UTF-8:The offsets are character-based, not byte-based - a character with athree-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 besteffort at such a representation.Attributes:- start: Start character, inclusive.- ending: End character, exclusive-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-