azure_cognitiveservices_luisruntime 0.17.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime.rb +37 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/luis_runtime_client.rb +131 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/apierror.rb +57 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/composite_child_model.rb +57 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/composite_entity_model.rb +77 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/entity_model.rb +100 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/entity_with_resolution.rb +94 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/entity_with_score.rb +98 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/intent_model.rb +61 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/luis_result.rb +156 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb +59 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/module_definition.rb +9 -0
- data/lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb +161 -0
- data/lib/azure_cognitiveservices_luisruntime.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/luisruntime_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/luisruntime_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/luisruntime_profile_module.rb +95 -0
- data/lib/version.rb +7 -0
- metadata +139 -0
@@ -0,0 +1,94 @@
|
|
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::V2_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class EntityWithResolution < EntityModel
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return Resolution values for pre-built LUIS entities.
|
17
|
+
attr_accessor :resolution
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for EntityWithResolution class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'EntityWithResolution',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'EntityWithResolution',
|
32
|
+
model_properties: {
|
33
|
+
additional_properties: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
type: {
|
37
|
+
name: 'Dictionary',
|
38
|
+
value: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ObjectElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Object'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
48
|
+
entity: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'entity',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
serialized_name: 'type',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
start_index: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: true,
|
67
|
+
serialized_name: 'startIndex',
|
68
|
+
type: {
|
69
|
+
name: 'Number'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
end_index: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: true,
|
75
|
+
serialized_name: 'endIndex',
|
76
|
+
type: {
|
77
|
+
name: 'Number'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
resolution: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'resolution',
|
84
|
+
type: {
|
85
|
+
name: 'Object'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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::V2_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class EntityWithScore < EntityModel
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Float] Associated prediction score for the intent (float).
|
17
|
+
attr_accessor :score
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for EntityWithScore class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'EntityWithScore',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'EntityWithScore',
|
32
|
+
model_properties: {
|
33
|
+
additional_properties: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
type: {
|
37
|
+
name: 'Dictionary',
|
38
|
+
value: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ObjectElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Object'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
48
|
+
entity: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'entity',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: true,
|
59
|
+
serialized_name: 'type',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
start_index: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: true,
|
67
|
+
serialized_name: 'startIndex',
|
68
|
+
type: {
|
69
|
+
name: 'Number'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
end_index: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: true,
|
75
|
+
serialized_name: 'endIndex',
|
76
|
+
type: {
|
77
|
+
name: 'Number'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
score: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'score',
|
84
|
+
constraints: {
|
85
|
+
InclusiveMaximum: 1,
|
86
|
+
InclusiveMinimum: 0
|
87
|
+
},
|
88
|
+
type: {
|
89
|
+
name: 'Double'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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::V2_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An intent detected from the utterance.
|
10
|
+
#
|
11
|
+
class IntentModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the intent, as defined in LUIS.
|
16
|
+
attr_accessor :intent
|
17
|
+
|
18
|
+
# @return [Float] Associated prediction score for the intent (float).
|
19
|
+
attr_accessor :score
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for IntentModel 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: 'IntentModel',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'IntentModel',
|
34
|
+
model_properties: {
|
35
|
+
intent: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'intent',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
score: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'score',
|
47
|
+
constraints: {
|
48
|
+
InclusiveMaximum: 1,
|
49
|
+
InclusiveMinimum: 0
|
50
|
+
},
|
51
|
+
type: {
|
52
|
+
name: 'Double'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,156 @@
|
|
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::V2_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Prediction, based on the input query, containing intent(s) and entities.
|
10
|
+
#
|
11
|
+
class LuisResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The input utterance that was analyzed.
|
16
|
+
attr_accessor :query
|
17
|
+
|
18
|
+
# @return [String] The corrected utterance (when spell checking was
|
19
|
+
# enabled).
|
20
|
+
attr_accessor :altered_query
|
21
|
+
|
22
|
+
# @return [IntentModel]
|
23
|
+
attr_accessor :top_scoring_intent
|
24
|
+
|
25
|
+
# @return [Array<IntentModel>] All the intents (and their score) that
|
26
|
+
# were detected from utterance.
|
27
|
+
attr_accessor :intents
|
28
|
+
|
29
|
+
# @return [Array<EntityModel>] The entities extracted from the utterance.
|
30
|
+
attr_accessor :entities
|
31
|
+
|
32
|
+
# @return [Array<CompositeEntityModel>] The composite entities extracted
|
33
|
+
# from the utterance.
|
34
|
+
attr_accessor :composite_entities
|
35
|
+
|
36
|
+
# @return [Sentiment]
|
37
|
+
attr_accessor :sentiment_analysis
|
38
|
+
|
39
|
+
# @return [LuisResult]
|
40
|
+
attr_accessor :connected_service_result
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for LuisResult class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'LuisResult',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'LuisResult',
|
55
|
+
model_properties: {
|
56
|
+
query: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'query',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
altered_query: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'alteredQuery',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
top_scoring_intent: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'topScoringIntent',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'IntentModel'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
intents: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'intents',
|
85
|
+
type: {
|
86
|
+
name: 'Sequence',
|
87
|
+
element: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'IntentModelElementType',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'IntentModel'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
entities: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'entities',
|
102
|
+
type: {
|
103
|
+
name: 'Sequence',
|
104
|
+
element: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'EntityModelElementType',
|
108
|
+
type: {
|
109
|
+
name: 'Composite',
|
110
|
+
class_name: 'EntityModel'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
},
|
115
|
+
composite_entities: {
|
116
|
+
client_side_validation: true,
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'compositeEntities',
|
119
|
+
type: {
|
120
|
+
name: 'Sequence',
|
121
|
+
element: {
|
122
|
+
client_side_validation: true,
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'CompositeEntityModelElementType',
|
125
|
+
type: {
|
126
|
+
name: 'Composite',
|
127
|
+
class_name: 'CompositeEntityModel'
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
},
|
132
|
+
sentiment_analysis: {
|
133
|
+
client_side_validation: true,
|
134
|
+
required: false,
|
135
|
+
serialized_name: 'sentimentAnalysis',
|
136
|
+
type: {
|
137
|
+
name: 'Composite',
|
138
|
+
class_name: 'Sentiment'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
connected_service_result: {
|
142
|
+
client_side_validation: true,
|
143
|
+
required: false,
|
144
|
+
serialized_name: 'connectedServiceResult',
|
145
|
+
type: {
|
146
|
+
name: 'Composite',
|
147
|
+
class_name: 'LuisResult'
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
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::V2_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Sentiment of the input utterance.
|
10
|
+
#
|
11
|
+
class Sentiment
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The polarity of the sentiment, can be positive,
|
16
|
+
# neutral or negative.
|
17
|
+
attr_accessor :label
|
18
|
+
|
19
|
+
# @return [Float] Score of the sentiment, ranges from 0 (most negative)
|
20
|
+
# to 1 (most positive).
|
21
|
+
attr_accessor :score
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for Sentiment 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: 'Sentiment',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'Sentiment',
|
36
|
+
model_properties: {
|
37
|
+
label: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'label',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
score: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'score',
|
49
|
+
type: {
|
50
|
+
name: 'Double'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|