# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::TextExtractionAnnotation (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.8 Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::TextExtractionAnnotation.

Annotation for identifying spans of text.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #score

    def score() -> ::Float

**Returns**

- (::Float) --- Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.

### #score=

    def score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.
**Returns**

- (::Float) --- Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.

### #text_segment

    def text_segment() -> ::Google::Cloud::AutoML::V1::TextSegment

**Returns**

- ([::Google::Cloud::AutoML::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSegment)) --- An entity annotation will set this, which is the part of the original text to which the annotation pertains.

### #text_segment=

    def text_segment=(value) -> ::Google::Cloud::AutoML::V1::TextSegment

**Parameter**

- **value** ([::Google::Cloud::AutoML::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSegment)) --- An entity annotation will set this, which is the part of the original text to which the annotation pertains.
**Returns**

- ([::Google::Cloud::AutoML::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSegment)) --- An entity annotation will set this, which is the part of the original text to which the annotation pertains.