Class: Google::Cloud::Language::V2::ModerateTextRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V2::ModerateTextRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v2/language_service.rb
Overview
The document moderation request message.
Defined Under Namespace
Modules: ModelVersion
Instance Attribute Summary collapse
-
#document ⇒ ::Google::Cloud::Language::V2::Document
Required.
-
#model_version ⇒ ::Google::Cloud::Language::V2::ModerateTextRequest::ModelVersion
Optional.
Instance Attribute Details
#document ⇒ ::Google::Cloud::Language::V2::Document
Returns Required. Input document.
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 383 class ModerateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model version to use for ModerateText. module ModelVersion # The default model version. MODEL_VERSION_UNSPECIFIED = 0 # Use the v1 model, this model is used by default when not provided. # The v1 model only returns probability (confidence) score for each # category. MODEL_VERSION_1 = 1 # Use the v2 model. # The v2 model only returns probability (confidence) score for each # category, and returns severity score for a subset of the categories. MODEL_VERSION_2 = 2 end end |
#model_version ⇒ ::Google::Cloud::Language::V2::ModerateTextRequest::ModelVersion
Returns Optional. The model version to use for ModerateText.
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 383 class ModerateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model version to use for ModerateText. module ModelVersion # The default model version. MODEL_VERSION_UNSPECIFIED = 0 # Use the v1 model, this model is used by default when not provided. # The v1 model only returns probability (confidence) score for each # category. MODEL_VERSION_1 = 1 # Use the v2 model. # The v2 model only returns probability (confidence) score for each # category, and returns severity score for a subset of the categories. MODEL_VERSION_2 = 2 end end |