[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class TextExtractionAnnotation (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.TextExtractionAnnotation)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.TextExtractionAnnotation)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.TextExtractionAnnotation)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.TextExtractionAnnotation)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.TextExtractionAnnotation) \nReference documentation and code samples for the Cloud AutoML V1 Client class TextExtractionAnnotation.\n\nAnnotation for identifying spans of text.\n\nGenerated from protobuf message `google.cloud.automl.v1.TextExtractionAnnotation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTextSegment\n\nAn entity annotation will set this, which is the part of the original\ntext to which the annotation pertains.\n\n### hasTextSegment\n\n### setTextSegment\n\nAn entity annotation will set this, which is the part of the original\ntext to which the annotation pertains.\n\n### getScore\n\nOutput only. A confidence estimate between 0.0 and 1.0. A higher value\nmeans greater confidence in correctness of the annotation.\n\n### setScore\n\nOutput only. A confidence estimate between 0.0 and 1.0. A higher value\nmeans greater confidence in correctness of the annotation.\n\n### getAnnotation"]]