Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#auto_corrected_textString

Returns The autocorrected text.

Returns:

  • (String)

    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

#classificationClassification

Returns The classification details of the text.

Returns:



28
29
30
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 28

def classification
  @classification
end

#languageString

Returns Language of the input text content.

Returns:

  • (String)

    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

#misrepresentationArray<String>

Returns The misrepresentation text.

Returns:

  • (Array<String>)

    The misrepresentation text.



25
26
27
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 25

def misrepresentation
  @misrepresentation
end

#normalized_textString

Returns The normalized text.

Returns:

  • (String)

    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_textString

Returns The original text.

Returns:

  • (String)

    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

#piiPII

Returns Personal Identifier Information details.

Returns:

  • (PII)

    Personal Identifier Information details.



34
35
36
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 34

def pii
  @pii
end

#statusStatus

Returns The evaluate status.

Returns:

  • (Status)

    The evaluate status.



31
32
33
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 31

def status
  @status
end

#termsArray<DetectedTerms>

Returns:



40
41
42
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/screen.rb', line 40

def terms
  @terms
end

#tracking_idString

Returns Unique Content Moderator transaction Id.

Returns:

  • (String)

    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

.mapperObject

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