azure_cognitiveservices_luisruntime 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb +6 -6
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime.rb +39 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb +131 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/dynamic_list.rb +67 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/error.rb +47 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/error_body.rb +57 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb +80 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/intent.rb +58 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction.rb +121 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction_request.rb +101 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction_request_options.rb +59 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction_response.rb +58 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/request_list.rb +76 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb +57 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/module_definition.rb +9 -0
- data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/prediction_operations.rb +267 -0
- data/lib/azure_cognitiveservices_luisruntime.rb +1 -0
- data/lib/profiles/latest/modules/luisruntime_profile_module.rb +38 -30
- data/lib/version.rb +1 -1
- metadata +17 -2
@@ -0,0 +1,58 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents an intent prediction.
|
10
|
+
#
|
11
|
+
class Intent
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Float] The score of the fired intent.
|
16
|
+
attr_accessor :score
|
17
|
+
|
18
|
+
# @return [Prediction] The prediction of the dispatched application.
|
19
|
+
attr_accessor :child_app
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Intent class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Intent',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Intent',
|
34
|
+
model_properties: {
|
35
|
+
score: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'score',
|
39
|
+
type: {
|
40
|
+
name: 'Double'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
child_app: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'childApp',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Prediction'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents the prediction of a query.
|
10
|
+
#
|
11
|
+
class Prediction
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The query after pre-processing and normalization.
|
16
|
+
attr_accessor :normalized_query
|
17
|
+
|
18
|
+
# @return [String] The query after spell checking. Only set if spell
|
19
|
+
# check was enabled and a spelling mistake was found.
|
20
|
+
attr_accessor :altered_query
|
21
|
+
|
22
|
+
# @return [String] The name of the top scoring intent.
|
23
|
+
attr_accessor :top_intent
|
24
|
+
|
25
|
+
# @return [Hash{String => Intent}] A dictionary representing the intents
|
26
|
+
# that fired.
|
27
|
+
attr_accessor :intents
|
28
|
+
|
29
|
+
# @return The dictionary representing the entities that fired.
|
30
|
+
attr_accessor :entities
|
31
|
+
|
32
|
+
# @return [Sentiment] The result of the sentiment analysis.
|
33
|
+
attr_accessor :sentiment
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Mapper for Prediction class as Ruby Hash.
|
38
|
+
# This will be used for serialization/deserialization.
|
39
|
+
#
|
40
|
+
def self.mapper()
|
41
|
+
{
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'Prediction',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'Prediction',
|
48
|
+
model_properties: {
|
49
|
+
normalized_query: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: true,
|
52
|
+
serialized_name: 'normalizedQuery',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
altered_query: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'alteredQuery',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
top_intent: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'topIntent',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
intents: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: true,
|
76
|
+
serialized_name: 'intents',
|
77
|
+
type: {
|
78
|
+
name: 'Dictionary',
|
79
|
+
value: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'IntentElementType',
|
83
|
+
type: {
|
84
|
+
name: 'Composite',
|
85
|
+
class_name: 'Intent'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
entities: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: true,
|
93
|
+
serialized_name: 'entities',
|
94
|
+
type: {
|
95
|
+
name: 'Dictionary',
|
96
|
+
value: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'ObjectElementType',
|
100
|
+
type: {
|
101
|
+
name: 'Object'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
sentiment: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'sentiment',
|
110
|
+
type: {
|
111
|
+
name: 'Composite',
|
112
|
+
class_name: 'Sentiment'
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction_request.rb
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents the prediction request parameters.
|
10
|
+
#
|
11
|
+
class PredictionRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The query to predict
|
16
|
+
attr_accessor :query
|
17
|
+
|
18
|
+
# @return [PredictionRequestOptions] The custom options defined for this
|
19
|
+
# request.
|
20
|
+
attr_accessor :options
|
21
|
+
|
22
|
+
# @return [Array<ExternalEntity>] The externally predicted entities for
|
23
|
+
# this request
|
24
|
+
attr_accessor :external_entities
|
25
|
+
|
26
|
+
# @return [Array<DynamicList>] The dynamically created list entities for
|
27
|
+
# this request
|
28
|
+
attr_accessor :dynamic_lists
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for PredictionRequest class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'PredictionRequest',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'PredictionRequest',
|
43
|
+
model_properties: {
|
44
|
+
query: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'query',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
options: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'options',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'PredictionRequestOptions'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
external_entities: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'externalEntities',
|
65
|
+
type: {
|
66
|
+
name: 'Sequence',
|
67
|
+
element: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'ExternalEntityElementType',
|
71
|
+
type: {
|
72
|
+
name: 'Composite',
|
73
|
+
class_name: 'ExternalEntity'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
dynamic_lists: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'dynamicLists',
|
82
|
+
type: {
|
83
|
+
name: 'Sequence',
|
84
|
+
element: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'DynamicListElementType',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'DynamicList'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The custom options for the prediction request.
|
10
|
+
#
|
11
|
+
class PredictionRequestOptions
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] The reference DateTime used for predicting datetime
|
16
|
+
# entities.
|
17
|
+
attr_accessor :datetime_reference
|
18
|
+
|
19
|
+
# @return [Boolean] Whether to make the external entities resolution
|
20
|
+
# override the predictions if an overlap occurs.
|
21
|
+
attr_accessor :override_predictions
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for PredictionRequestOptions class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'PredictionRequestOptions',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'PredictionRequestOptions',
|
36
|
+
model_properties: {
|
37
|
+
datetime_reference: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'datetimeReference',
|
41
|
+
type: {
|
42
|
+
name: 'DateTime'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
override_predictions: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'overridePredictions',
|
49
|
+
type: {
|
50
|
+
name: 'Boolean'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/3.0-preview/generated/azure_cognitiveservices_luisruntime/models/prediction_response.rb
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents the prediction response.
|
10
|
+
#
|
11
|
+
class PredictionResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The query used in the prediction.
|
16
|
+
attr_accessor :query
|
17
|
+
|
18
|
+
# @return [Prediction] The prediction of the requested query.
|
19
|
+
attr_accessor :prediction
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for PredictionResponse class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'PredictionResponse',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'PredictionResponse',
|
34
|
+
model_properties: {
|
35
|
+
query: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'query',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
prediction: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'prediction',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Prediction'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::LuisRuntime::V3_0_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines a sub-list to append to an existing list entity.
|
10
|
+
#
|
11
|
+
class RequestList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the sub-list.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The canonical form of the sub-list.
|
19
|
+
attr_accessor :canonical_form
|
20
|
+
|
21
|
+
# @return [Array<String>] The synonyms of the canonical form.
|
22
|
+
attr_accessor :synonyms
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for RequestList class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'RequestList',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'RequestList',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
canonical_form: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: true,
|
49
|
+
serialized_name: 'canonicalForm',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
synonyms: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'synonyms',
|
58
|
+
type: {
|
59
|
+
name: 'Sequence',
|
60
|
+
element: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'StringElementType',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|