Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::IntentsSuggestionExample

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb

Overview

Predicted/suggested intent.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#entity_predictionsArray<EntityPrediction>

Returns Predicted/suggested entities.

Returns:



26
27
28
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb', line 26

def entity_predictions
  @entity_predictions
end

#intent_predictionsArray<IntentPrediction>

Returns Predicted/suggested intents.

Returns:



23
24
25
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb', line 23

def intent_predictions
  @intent_predictions
end

#textString

in seattle?“

Returns:

  • (String)

    The utterance. For example, “What’s the weather like



17
18
19
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb', line 17

def text
  @text
end

#tokenized_textArray<String>

Returns The tokenized utterance.

Returns:

  • (Array<String>)

    The tokenized utterance.



20
21
22
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb', line 20

def tokenized_text
  @tokenized_text
end

Class Method Details

.mapperObject

Mapper for IntentsSuggestionExample class as Ruby Hash. This will be used for serialization/deserialization.



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
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
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IntentsSuggestionExample',
    type: {
      name: 'Composite',
      class_name: 'IntentsSuggestionExample',
      model_properties: {
        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_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