Class: Google::Cloud::Language::V1::ClassificationCategory
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::ClassificationCategory
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1/language_service.rb
Overview
Represents a category returned from the text classifier.
Instance Attribute Summary collapse
-
#confidence ⇒ ::Float
The classifier's confidence of the category.
-
#name ⇒ ::String
The name of the category representing the document, from the predefined taxonomy.
Instance Attribute Details
#confidence ⇒ ::Float
Returns The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
897 898 899 900 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 897 class ClassificationCategory include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The name of the category representing the document, from the predefined taxonomy.
897 898 899 900 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 897 class ClassificationCategory include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |