class Azure::CognitiveServices::LuisAuthoring::V2_0::Models::LabeledUtterance
A prediction and label pair of an example.
Attributes
entity_labels[RW]
@return [Array<EntityLabel>] The entities matching the example.
entity_predictions[RW]
@return [Array<EntityPrediction>] List of suggested entities.
id[RW]
@return [Integer] ID of Labeled Utterance.
intent_label[RW]
@return [String] The intent matching the example.
intent_predictions[RW]
@return [Array<IntentPrediction>] List of suggested intents.
text[RW]
@return [String] The utterance. For example, “What's the weather like in seattle?”
tokenized_text[RW]
@return [Array<String>] The utterance tokenized.
Public Class Methods
mapper()
click to toggle source
Mapper for LabeledUtterance
class as Ruby Hash. This will be used for serialization/deserialization.
# 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