Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::ClassifyTextResponse.
The document classification response message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#categories
def categories() -> ::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>
Returns
- (::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>) — Categories representing the input document.
#categories=
def categories=(value) -> ::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>
Parameter
- value (::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>) — Categories representing the input document.
Returns
- (::Array<::Google::Cloud::Language::V1beta2::ClassificationCategory>) — Categories representing the input document.