Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::ClassifyTextRequest.
The document classification request message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#classification_model_options
def classification_model_options() -> ::Google::Cloud::Language::V1::ClassificationModelOptions
Returns
- (::Google::Cloud::Language::V1::ClassificationModelOptions) — Model options to use for classification. Defaults to v1 options if not specified.
#classification_model_options=
def classification_model_options=(value) -> ::Google::Cloud::Language::V1::ClassificationModelOptions
Parameter
- value (::Google::Cloud::Language::V1::ClassificationModelOptions) — Model options to use for classification. Defaults to v1 options if not specified.
Returns
- (::Google::Cloud::Language::V1::ClassificationModelOptions) — Model options to use for classification. Defaults to v1 options if not specified.
#document
def document() -> ::Google::Cloud::Language::V1::Document
Returns
- (::Google::Cloud::Language::V1::Document) — Required. Input document.
#document=
def document=(value) -> ::Google::Cloud::Language::V1::Document
Parameter
- value (::Google::Cloud::Language::V1::Document) — Required. Input document.
Returns
- (::Google::Cloud::Language::V1::Document) — Required. Input document.