Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::ExampleLabelObject
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V2_0::Models::ExampleLabelObject
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb
Overview
A labeled example utterance.
Instance Attribute Summary collapse
-
#entity_labels ⇒ Array<EntityLabelObject>
example utterance.
-
#intent_name ⇒ String
utterance.
-
#text ⇒ String
The example utterance.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ExampleLabelObject class as Ruby Hash.
Instance Attribute Details
#entity_labels ⇒ Array<EntityLabelObject>
example utterance.
20 21 22 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb', line 20 def entity_labels @entity_labels end |
#intent_name ⇒ String
utterance.
24 25 26 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb', line 24 def intent_name @intent_name end |
#text ⇒ String
Returns The example utterance.
16 17 18 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb', line 16 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for ExampleLabelObject class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 34 35 36 37 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 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ExampleLabelObject', type: { name: 'Composite', class_name: 'ExampleLabelObject', model_properties: { text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } }, entity_labels: { client_side_validation: true, required: false, serialized_name: 'entityLabels', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EntityLabelObjectElementType', type: { name: 'Composite', class_name: 'EntityLabelObject' } } } }, intent_name: { client_side_validation: true, required: false, serialized_name: 'intentName', type: { name: 'String' } } } } } end |