azure_cognitiveservices_luisauthoring 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring.rb +142 -0
  4. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/apps.rb +2212 -0
  5. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/azure_accounts.rb +453 -0
  6. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/examples.rb +508 -0
  7. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb +668 -0
  8. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/luis_authoring_client.rb +167 -0
  9. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb +11482 -0
  10. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/app_version_setting_object.rb +57 -0
  11. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_create_object.rb +106 -0
  12. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_info_response.rb +158 -0
  13. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_publish_object.rb +59 -0
  14. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_setting_update_object.rb +47 -0
  15. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_settings.rb +58 -0
  16. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_update_object.rb +57 -0
  17. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/available_culture.rb +57 -0
  18. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/available_prebuilt_entity_model.rb +68 -0
  19. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/azure_account_info_object.rb +68 -0
  20. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/batch_label_example.rb +70 -0
  21. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/child_entity.rb +57 -0
  22. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list.rb +85 -0
  23. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_entity_extractor.rb +123 -0
  24. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_create_object.rb +66 -0
  25. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_patch_object.rb +55 -0
  26. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_update_object.rb +66 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/collaborators_array.rb +55 -0
  28. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_child_model_create_object.rb +47 -0
  29. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_extractor.rb +123 -0
  30. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_model.rb +65 -0
  31. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/custom_prebuilt_model.rb +125 -0
  32. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/endpoint_info.rb +125 -0
  33. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/enqueue_training_response.rb +58 -0
  34. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entities_suggestion_example.rb +106 -0
  35. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_extractor.rb +125 -0
  36. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb +71 -0
  37. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb +71 -0
  38. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_model_info.rb +87 -0
  39. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_prediction.rb +81 -0
  40. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role.rb +57 -0
  41. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role_create_object.rb +46 -0
  42. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role_update_object.rb +46 -0
  43. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/error_response.rb +65 -0
  44. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb +78 -0
  45. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item.rb +57 -0
  46. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_create_object.rb +46 -0
  47. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_update_object.rb +46 -0
  48. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb +68 -0
  49. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/features_response_object.rb +75 -0
  50. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_entity.rb +77 -0
  51. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_model_create_object.rb +47 -0
  52. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_model_update_object.rb +47 -0
  53. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_extractor.rb +123 -0
  54. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_model.rb +65 -0
  55. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_model.rb +97 -0
  56. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intent_classifier.rb +89 -0
  57. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intent_prediction.rb +57 -0
  58. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb +106 -0
  59. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb +70 -0
  60. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonmodel_feature.rb +90 -0
  61. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonregex_feature.rb +68 -0
  62. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonutterance.rb +77 -0
  63. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_example_response.rb +57 -0
  64. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb +57 -0
  65. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb +148 -0
  66. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/luis_app.rb +318 -0
  67. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_create_object.rb +46 -0
  68. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info.rb +83 -0
  69. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info_response.rb +196 -0
  70. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_training_details.rb +91 -0
  71. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_training_info.rb +58 -0
  72. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_update_object.rb +46 -0
  73. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_error.rb +57 -0
  74. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_status.rb +58 -0
  75. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_status_type.rb +17 -0
  76. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any.rb +84 -0
  77. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_entity_extractor.rb +123 -0
  78. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_create_object.rb +65 -0
  79. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_update_object.rb +65 -0
  80. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_create_object.rb +57 -0
  81. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_feature_info.rb +70 -0
  82. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb +57 -0
  83. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_create_object.rb +57 -0
  84. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_info.rb +68 -0
  85. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_update_object.rb +68 -0
  86. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_update_object.rb +70 -0
  87. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/personal_assistants_response.rb +74 -0
  88. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb +91 -0
  89. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phraselist_create_object.rb +81 -0
  90. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phraselist_update_object.rb +94 -0
  91. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain.rb +119 -0
  92. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_base_object.rb +47 -0
  93. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_object.rb +58 -0
  94. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_item.rb +69 -0
  95. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_model_create_object.rb +58 -0
  96. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_object.rb +58 -0
  97. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity.rb +65 -0
  98. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity_extractor.rb +103 -0
  99. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/production_or_staging_endpoint_info.rb +100 -0
  100. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/publish_setting_update_object.rb +71 -0
  101. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/publish_settings.rb +82 -0
  102. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_entity.rb +76 -0
  103. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_entity_extractor.rb +114 -0
  104. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_create_object.rb +57 -0
  105. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_update_object.rb +57 -0
  106. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list.rb +65 -0
  107. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list_response.rb +70 -0
  108. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/task_update_object.rb +46 -0
  109. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/training_status.rb +17 -0
  110. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/user_access_list.rb +65 -0
  111. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/user_collaborator.rb +47 -0
  112. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/version_info.rb +177 -0
  113. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_base_update_object.rb +65 -0
  114. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_object.rb +65 -0
  115. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/module_definition.rb +9 -0
  116. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/pattern.rb +963 -0
  117. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/permissions.rb +427 -0
  118. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/settings.rb +237 -0
  119. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/train.rb +247 -0
  120. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb +854 -0
  121. data/lib/azure_cognitiveservices_luisauthoring.rb +6 -0
  122. data/lib/module_definition.rb +7 -0
  123. data/lib/profiles/latest/luisauthoring_latest_profile_client.rb +38 -0
  124. data/lib/profiles/latest/luisauthoring_module_definition.rb +8 -0
  125. data/lib/profiles/latest/modules/luisauthoring_profile_module.rb +497 -0
  126. data/lib/version.rb +7 -0
  127. metadata +244 -0
@@ -0,0 +1,89 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # Intent Classifier.
10
+ #
11
+ class IntentClassifier < ModelInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The domain name.
16
+ attr_accessor :custom_prebuilt_domain_name
17
+
18
+ # @return [String] The intent name or entity name.
19
+ attr_accessor :custom_prebuilt_model_name
20
+
21
+
22
+ #
23
+ # Mapper for IntentClassifier 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 Classifier',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'IntentClassifier',
34
+ model_properties: {
35
+ id: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'id',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ name: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ type_id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'typeId',
55
+ type: {
56
+ name: 'Number'
57
+ }
58
+ },
59
+ readable_type: {
60
+ client_side_validation: true,
61
+ required: true,
62
+ serialized_name: 'readableType',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ custom_prebuilt_domain_name: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'customPrebuiltDomainName',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ custom_prebuilt_model_name: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'customPrebuiltModelName',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,57 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # A suggested intent.
10
+ #
11
+ class IntentPrediction
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The intent's name
16
+ attr_accessor :name
17
+
18
+ # @return [Float] The intent's score, based on the prediction model.
19
+ attr_accessor :score
20
+
21
+
22
+ #
23
+ # Mapper for IntentPrediction 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: 'IntentPrediction',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'IntentPrediction',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ score: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'score',
47
+ type: {
48
+ name: 'Double'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,106 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # Predicted/suggested intent.
10
+ #
11
+ class IntentsSuggestionExample
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The utterance. E.g.: what's the weather like in
16
+ # seattle?
17
+ attr_accessor :text
18
+
19
+ # @return [Array<String>] The utterance tokenized.
20
+ attr_accessor :tokenized_text
21
+
22
+ # @return [Array<IntentPrediction>] Predicted/suggested intents.
23
+ attr_accessor :intent_predictions
24
+
25
+ # @return [Array<EntityPrediction>] Predicted/suggested entities.
26
+ attr_accessor :entity_predictions
27
+
28
+
29
+ #
30
+ # Mapper for IntentsSuggestionExample class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'IntentsSuggestionExample',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'IntentsSuggestionExample',
41
+ model_properties: {
42
+ text: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'text',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ tokenized_text: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'tokenizedText',
54
+ type: {
55
+ name: 'Sequence',
56
+ element: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'StringElementType',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ }
64
+ }
65
+ },
66
+ intent_predictions: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'intentPredictions',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'IntentPredictionElementType',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'IntentPrediction'
79
+ }
80
+ }
81
+ }
82
+ },
83
+ entity_predictions: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'entityPredictions',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'EntityPredictionElementType',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'EntityPrediction'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,70 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # Exported Model - Extracted Entity from utterance.
10
+ #
11
+ class JSONEntity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The index within the utterance where the extracted
16
+ # entity starts.
17
+ attr_accessor :start_pos
18
+
19
+ # @return [Integer] The index within the utterance where the extracted
20
+ # entity ends.
21
+ attr_accessor :end_pos
22
+
23
+ # @return [String] The entity name.
24
+ attr_accessor :entity
25
+
26
+
27
+ #
28
+ # Mapper for JSONEntity class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'JSONEntity',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'JSONEntity',
39
+ model_properties: {
40
+ start_pos: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: 'startPos',
44
+ type: {
45
+ name: 'Number'
46
+ }
47
+ },
48
+ end_pos: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'endPos',
52
+ type: {
53
+ name: 'Number'
54
+ }
55
+ },
56
+ entity: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: 'entity',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,90 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # Exported Model - Phraselist Model Feature.
10
+ #
11
+ class JSONModelFeature
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Indicates if the feature is enabled.
16
+ attr_accessor :activated
17
+
18
+ # @return [String] The Phraselist name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] List of comma-separated phrases that represent the
22
+ # Phraselist.
23
+ attr_accessor :words
24
+
25
+ # @return [Boolean] An exchangeable phrase list feature are serves as
26
+ # single feature to the LUIS underlying training algorithm. It is used as
27
+ # a lexicon lookup feature where its value is 1 if the lexicon contains a
28
+ # given word or 0 if it doesn’t. Think of an exchangeable as a synonyms
29
+ # list. A non-exchangeable phrase list feature has all the phrases in the
30
+ # list serve as separate features to the underlying training algorithm.
31
+ # So, if you your phrase list feature contains 5 phrases, they will be
32
+ # mapped to 5 separate features. You can think of the non-exchangeable
33
+ # phrase list feature as an additional bag of words that you are willing
34
+ # to add to LUIS existing vocabulary features. Think of a
35
+ # non-exchangeable as set of different words. Default value is true.
36
+ attr_accessor :mode
37
+
38
+
39
+ #
40
+ # Mapper for JSONModelFeature class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'JSONModelFeature',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'JSONModelFeature',
51
+ model_properties: {
52
+ activated: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'activated',
56
+ type: {
57
+ name: 'Boolean'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'name',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ words: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'words',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ mode: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'mode',
80
+ type: {
81
+ name: 'Boolean'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,68 @@
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::LuisAuthoring::V2_0
7
+ module Models
8
+ #
9
+ # Exported Model - A Pattern feature.
10
+ #
11
+ class JSONRegexFeature
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Regular Expression to match.
16
+ attr_accessor :pattern
17
+
18
+ # @return [Boolean] Indicates if the Pattern feature is enabled.
19
+ attr_accessor :activated
20
+
21
+ # @return [String] Name of the feature.
22
+ attr_accessor :name
23
+
24
+
25
+ #
26
+ # Mapper for JSONRegexFeature 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: 'JSONRegexFeature',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'JSONRegexFeature',
37
+ model_properties: {
38
+ pattern: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'pattern',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ activated: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'activated',
50
+ type: {
51
+ name: 'Boolean'
52
+ }
53
+ },
54
+ name: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end