NAME

Google::Cloud::Automl::V1::TextExtraction - Compiled Protocol Buffers messages for google/cloud/automl/v1/text_extraction.proto

SYNOPSIS

use Google::Cloud::Automl::V1::TextExtraction;

my $msg = Google::Cloud::Automl::V1::TextExtraction::TextExtractionAnnotation->new({
    text_segment => $text_segment,
    score => $score,
});

# Read or update a field
my $val = $msg->text_segment();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::TextExtraction::TextExtractionAnnotation->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/text_extraction.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Automl::V1::TextExtraction::TextExtractionAnnotation

Annotation for identifying spans of text.

Inherits from Protobuf::Message.

Accessors

  • $msg->text_segment() / $msg->text_segment($value)

    Type: Message (Google::Cloud::Automl::V1::TextSegment::TextSegment)

    An entity annotation will set this, which is the part of the original text to which the annotation pertains.

  • $msg->score() / $msg->score($value)

    Type: Float

    Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.

Google::Cloud::Automl::V1::TextExtraction::TextExtractionEvaluationMetrics

Model evaluation metrics for text extraction problems.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::TextExtraction::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.