Class TextSpan (2.15.1)

TextSpan(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents an output piece of text.

Attributes

Name Description
content str
The content of the output text.
begin_offset int
The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.