Class TextSpan (2.17.2)
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class TextSpan (2.17.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.2 (latest)](/python/docs/reference/language/latest/google.cloud.language_v1.types.TextSpan)\n- [2.17.0](/python/docs/reference/language/2.17.0/google.cloud.language_v1.types.TextSpan)\n- [2.16.0](/python/docs/reference/language/2.16.0/google.cloud.language_v1.types.TextSpan)\n- [2.15.1](/python/docs/reference/language/2.15.1/google.cloud.language_v1.types.TextSpan)\n- [2.14.0](/python/docs/reference/language/2.14.0/google.cloud.language_v1.types.TextSpan)\n- [2.13.4](/python/docs/reference/language/2.13.4/google.cloud.language_v1.types.TextSpan)\n- [2.12.0](/python/docs/reference/language/2.12.0/google.cloud.language_v1.types.TextSpan)\n- [2.11.0](/python/docs/reference/language/2.11.0/google.cloud.language_v1.types.TextSpan)\n- [2.10.1](/python/docs/reference/language/2.10.1/google.cloud.language_v1.types.TextSpan)\n- [2.9.1](/python/docs/reference/language/2.9.1/google.cloud.language_v1.types.TextSpan)\n- [2.8.1](/python/docs/reference/language/2.8.1/google.cloud.language_v1.types.TextSpan)\n- [2.7.0](/python/docs/reference/language/2.7.0/google.cloud.language_v1.types.TextSpan)\n- [2.6.1](/python/docs/reference/language/2.6.1/google.cloud.language_v1.types.TextSpan)\n- [2.5.2](/python/docs/reference/language/2.5.2/google.cloud.language_v1.types.TextSpan)\n- [2.4.3](/python/docs/reference/language/2.4.3/google.cloud.language_v1.types.TextSpan)\n- [2.3.2](/python/docs/reference/language/2.3.2/google.cloud.language_v1.types.TextSpan)\n- [2.2.2](/python/docs/reference/language/2.2.2/google.cloud.language_v1.types.TextSpan)\n- [2.1.0](/python/docs/reference/language/2.1.0/google.cloud.language_v1.types.TextSpan)\n- [2.0.0](/python/docs/reference/language/2.0.0/google.cloud.language_v1.types.TextSpan)\n- [1.3.2](/python/docs/reference/language/1.3.2/google.cloud.language_v1.types.TextSpan) \n\n TextSpan(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nRepresents an output piece of text."]]