Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb
Overview
The classification details of the text.
Instance Attribute Summary collapse
-
#category1 ⇒ ClassificationCategory1
text.
-
#category2 ⇒ ClassificationCategory2
text.
-
#category3 ⇒ ClassificationCategory3
text.
-
#review_recommended ⇒ Boolean
The review recommended flag.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Classification class as Ruby Hash.
Instance Attribute Details
#category1 ⇒ ClassificationCategory1
text. <a href=“aka.ms/textClassifyCategories”>Click here</a> for more details on category classification.
18 19 20 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 18 def category1 @category1 end |
#category2 ⇒ ClassificationCategory2
text. <a href=“aka.ms/textClassifyCategories”>Click here</a> for more details on category classification.
23 24 25 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 23 def category2 @category2 end |
#category3 ⇒ ClassificationCategory3
text. <a href=“aka.ms/textClassifyCategories”>Click here</a> for more details on category classification.
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 28 def category3 @category3 end |
#review_recommended ⇒ Boolean
Returns The review recommended flag.
31 32 33 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 31 def review_recommended @review_recommended end |
Class Method Details
.mapper ⇒ Object
Mapper for Classification class as Ruby Hash. This will be used for serialization/deserialization.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Classification', type: { name: 'Composite', class_name: 'Classification', model_properties: { category1: { client_side_validation: true, required: false, serialized_name: 'Category1', type: { name: 'Composite', class_name: 'ClassificationCategory1' } }, category2: { client_side_validation: true, required: false, serialized_name: 'Category2', type: { name: 'Composite', class_name: 'ClassificationCategory2' } }, category3: { client_side_validation: true, required: false, serialized_name: 'Category3', type: { name: 'Composite', class_name: 'ClassificationCategory3' } }, review_recommended: { client_side_validation: true, required: false, serialized_name: 'ReviewRecommended', type: { name: 'Boolean' } } } } } end |