Class TextSpan (2.12.0)

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

Represents a text span in the input document.

Attributes

NameDescription
content str
The content of the text span, which is a substring of the document.
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.