Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb
Overview
The response for a Screen text request.
Instance Attribute Summary collapse
-
#auto_corrected_text ⇒ String
The autocorrected text.
-
#classification ⇒ Classification
The classification details of the text.
-
#language ⇒ String
Language of the input text content.
-
#misrepresentation ⇒ Array<String>
The misrepresentation text.
-
#normalized_text ⇒ String
The normalized text.
-
#original_text ⇒ String
The original text.
-
#pii ⇒ PII
Personal Identifier Information details.
-
#status ⇒ Status
The evaluate status.
- #terms ⇒ Array<DetectedTerms>
-
#tracking_id ⇒ String
Unique Content Moderator transaction Id.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Screen class as Ruby Hash.
Instance Attribute Details
#auto_corrected_text ⇒ String
Returns The autocorrected text.
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 22 def auto_corrected_text @auto_corrected_text end |
#classification ⇒ Classification
Returns The classification details of the text.
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 28 def classification @classification end |
#language ⇒ String
Returns Language of the input text content.
37 38 39 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 37 def language @language end |
#misrepresentation ⇒ Array<String>
Returns The misrepresentation text.
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 25 def misrepresentation @misrepresentation end |
#normalized_text ⇒ String
Returns The normalized text.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 19 def normalized_text @normalized_text end |
#original_text ⇒ String
Returns The original text.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 16 def original_text @original_text end |
#pii ⇒ PII
Returns Personal Identifier Information details.
34 35 36 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 34 def pii @pii end |
#status ⇒ Status
Returns The evaluate status.
31 32 33 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 31 def status @status end |
#terms ⇒ Array<DetectedTerms>
40 41 42 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 40 def terms @terms end |
#tracking_id ⇒ String
Returns Unique Content Moderator transaction Id.
43 44 45 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 43 def tracking_id @tracking_id end |
Class Method Details
.mapper ⇒ Object
Mapper for Screen class as Ruby Hash. This will be used for serialization/deserialization.
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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Screen', type: { name: 'Composite', class_name: 'Screen', model_properties: { original_text: { client_side_validation: true, required: false, serialized_name: 'OriginalText', type: { name: 'String' } }, normalized_text: { client_side_validation: true, required: false, serialized_name: 'NormalizedText', type: { name: 'String' } }, auto_corrected_text: { client_side_validation: true, required: false, serialized_name: 'AutoCorrectedText', type: { name: 'String' } }, misrepresentation: { client_side_validation: true, required: false, serialized_name: 'Misrepresentation', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, classification: { client_side_validation: true, required: false, serialized_name: 'Classification', type: { name: 'Composite', class_name: 'Classification' } }, status: { client_side_validation: true, required: false, serialized_name: 'Status', type: { name: 'Composite', class_name: 'Status' } }, pii: { client_side_validation: true, required: false, serialized_name: 'PII', type: { name: 'Composite', class_name: 'PII' } }, language: { client_side_validation: true, required: false, serialized_name: 'Language', type: { name: 'String' } }, terms: { client_side_validation: true, required: false, serialized_name: 'Terms', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DetectedTermsElementType', type: { name: 'Composite', class_name: 'DetectedTerms' } } } }, tracking_id: { client_side_validation: true, required: false, serialized_name: 'TrackingId', type: { name: 'String' } } } } } end |