Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::LabeledUtterance
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V2_0::Models::LabeledUtterance
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb
Overview
A prediction and label pair of an example.
Instance Attribute Summary collapse
-
#entity_labels ⇒ Array<EntityLabel>
The entities matching the example.
-
#entity_predictions ⇒ Array<EntityPrediction>
List of suggested entities.
-
#id ⇒ Integer
ID of Labeled Utterance.
-
#intent_label ⇒ String
The intent matching the example.
-
#intent_predictions ⇒ Array<IntentPrediction>
List of suggested intents.
-
#text ⇒ String
in seattle?“.
-
#tokenized_text ⇒ Array<String>
The utterance tokenized.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LabeledUtterance class as Ruby Hash.
Instance Attribute Details
#entity_labels ⇒ Array<EntityLabel>
Returns The entities matching the example.
29 30 31 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 29 def entity_labels @entity_labels end |
#entity_predictions ⇒ Array<EntityPrediction>
Returns List of suggested entities.
35 36 37 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 35 def entity_predictions @entity_predictions end |
#id ⇒ Integer
Returns ID of Labeled Utterance.
16 17 18 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 16 def id @id end |
#intent_label ⇒ String
Returns The intent matching the example.
26 27 28 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 26 def intent_label @intent_label end |
#intent_predictions ⇒ Array<IntentPrediction>
Returns List of suggested intents.
32 33 34 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 32 def intent_predictions @intent_predictions end |
#text ⇒ String
in seattle?“
20 21 22 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 20 def text @text end |
#tokenized_text ⇒ Array<String>
Returns The utterance tokenized.
23 24 25 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 23 def tokenized_text @tokenized_text end |
Class Method Details
.mapper ⇒ Object
Mapper for LabeledUtterance class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LabeledUtterance', type: { name: 'Composite', class_name: 'LabeledUtterance', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'Number' } }, text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } }, tokenized_text: { client_side_validation: true, required: false, serialized_name: 'tokenizedText', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, intent_label: { client_side_validation: true, required: false, serialized_name: 'intentLabel', 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: 'EntityLabelElementType', type: { name: 'Composite', class_name: 'EntityLabel' } } } }, intent_predictions: { client_side_validation: true, required: false, serialized_name: 'intentPredictions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'IntentPredictionElementType', type: { name: 'Composite', class_name: 'IntentPrediction' } } } }, entity_predictions: { client_side_validation: true, required: false, serialized_name: 'entityPredictions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EntityPredictionElementType', type: { name: 'Composite', class_name: 'EntityPrediction' } } } } } } } end |