Class: Google::Cloud::Language::V2::ClassificationCategory
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V2::ClassificationCategory
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v2/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.
-
#severity ⇒ ::Float
Optional.
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.
278 279 280 281 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 278 class ClassificationCategory include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The name of the category representing the document.
278 279 280 281 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 278 class ClassificationCategory include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#severity ⇒ ::Float
Returns Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.
278 279 280 281 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 278 class ClassificationCategory include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |