Class: Google::Cloud::AIPlatform::V1::Schema::Predict::Instance::TextExtractionPredictionInstance

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb

Overview

Prediction input format for Text Extraction.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns The text snippet to make the predictions on.

Returns:

  • (::String)

    The text snippet to make the predictions on.



43
44
45
46
# File 'proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb', line 43

class TextExtractionPredictionInstance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#key::String

Returns 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.



43
44
45
46
# File 'proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb', line 43

class TextExtractionPredictionInstance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

Returns 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


43
44
45
46
# File 'proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb', line 43

class TextExtractionPredictionInstance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end