Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction::TextExtractionPredictionResult (v0.44.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction::TextExtractionPredictionResult.

Prediction output format for Text Extraction.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#confidences

def confidences() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

#confidences=

def confidences=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
Returns
  • (::Array<::Float>) — The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

#display_names

def display_names() -> ::Array<::String>
Returns
  • (::Array<::String>) — The display names of the AnnotationSpecs that had been identified, order matches the IDs.

#display_names=

def display_names=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The display names of the AnnotationSpecs that had been identified, order matches the IDs.
Returns
  • (::Array<::String>) — The display names of the AnnotationSpecs that had been identified, order matches the IDs.

#ids

def ids() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

#ids=

def ids=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
Returns
  • (::Array<::Integer>) — The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.

#text_segment_end_offsets

def text_segment_end_offsets() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.

#text_segment_end_offsets=

def text_segment_end_offsets=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
Returns
  • (::Array<::Integer>) — The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.

#text_segment_start_offsets

def text_segment_start_offsets() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.

#text_segment_start_offsets=

def text_segment_start_offsets=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
Returns
  • (::Array<::Integer>) — The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.