Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::Schema::Predict::Instance::TextExtractionPredictionInstance (v0.38.0)

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

Prediction input format for Text Extraction.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content

def content() -> ::String
Returns
  • (::String) — The text snippet to make the predictions on.

#content=

def content=(value) -> ::String
Parameter
  • value (::String) — The text snippet to make the predictions on.
Returns
  • (::String) — The text snippet to make the predictions on.

#key

def key() -> ::String
Returns
  • (::String) — This field is only used for batch prediction. If a key is provided, the batch prediction result will by mapped to this key. If omitted, then the batch prediction result will contain the entire input instance. Vertex AI will not check if keys in the request are duplicates, so it is up to the caller to ensure the keys are unique.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — This field is only used for batch prediction. If a key is provided, the batch prediction result will by mapped to this key. If omitted, then the batch prediction result will contain the entire input instance. Vertex AI will not check if keys in the request are duplicates, so it is up to the caller to ensure the keys are unique.
Returns
  • (::String) — This field is only used for batch prediction. If a key is provided, the batch prediction result will by mapped to this key. If omitted, then the batch prediction result will contain the entire input instance. Vertex AI will not check if keys in the request are duplicates, so it is up to the caller to ensure the keys are unique.

#mime_type

def mime_type() -> ::String
Returns
  • (::String) —

    The MIME type of the text snippet. The supported MIME types are listed below.

    • text/plain

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) —

    The MIME type of the text snippet. The supported MIME types are listed below.

    • text/plain
Returns
  • (::String) —

    The MIME type of the text snippet. The supported MIME types are listed below.

    • text/plain