Class TextSpan (2.13.4)

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

Represents a text span in the input document.

Attributes

Name Description
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.