Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::TextExtractionAnnotation (v0.10.0)

Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::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::V1beta1::TextSegment
Returns

#text_segment=

def text_segment=(value) -> ::Google::Cloud::AutoML::V1beta1::TextSegment
Parameter
Returns