azure_cognitiveservices_textanalytics 0.17.2 → 0.17.3
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/azure_cognitiveservices_textanalytics.rb +1 -0
- data/lib/profiles/latest/modules/textanalytics_profile_module.rb +60 -52
- data/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
- data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics.rb +47 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb +72 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb +58 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result.rb +93 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item.rb +82 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entity_record.rb +138 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_record.rb +58 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_response.rb +81 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb +70 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb +93 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb +83 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_input.rb +56 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb +93 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb +81 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb +69 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/match_record.rb +97 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb +56 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb +70 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/request_statistics.rb +82 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb +93 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb +75 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/module_definition.rb +9 -0
- data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +614 -0
- data/lib/version.rb +1 -1
- metadata +24 -1
data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item.rb
ADDED
@@ -0,0 +1,82 @@
|
|
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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class EntitiesBatchResultItem
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Unique, non-empty document identifier.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [Array<EntityRecord>] Recognized entities in the document.
|
20
|
+
attr_accessor :entities
|
21
|
+
|
22
|
+
# @return [DocumentStatistics] (Optional) if showStats=true was specified
|
23
|
+
# in the request this field will contain information about the document
|
24
|
+
# payload.
|
25
|
+
attr_accessor :statistics
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for EntitiesBatchResultItem class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'EntitiesBatchResultItem',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'EntitiesBatchResultItem',
|
40
|
+
model_properties: {
|
41
|
+
id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'id',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
entities: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'entities',
|
54
|
+
type: {
|
55
|
+
name: 'Sequence',
|
56
|
+
element: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'EntityRecordElementType',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'EntityRecord'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
statistics: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'statistics',
|
71
|
+
type: {
|
72
|
+
name: 'Composite',
|
73
|
+
class_name: 'DocumentStatistics'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,138 @@
|
|
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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class EntityRecord
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Entity formal name.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [Array<MatchRecord>] List of instances this entity appears in
|
20
|
+
# the text.
|
21
|
+
attr_accessor :matches
|
22
|
+
|
23
|
+
# @return [String] Wikipedia language for which the WikipediaId and
|
24
|
+
# WikipediaUrl refers to.
|
25
|
+
attr_accessor :wikipedia_language
|
26
|
+
|
27
|
+
# @return [String] Wikipedia unique identifier of the recognized entity.
|
28
|
+
attr_accessor :wikipedia_id
|
29
|
+
|
30
|
+
# @return [String] URL for the entity's Wikipedia page.
|
31
|
+
attr_accessor :wikipedia_url
|
32
|
+
|
33
|
+
# @return [String] Bing unique identifier of the recognized entity. Use
|
34
|
+
# in conjunction with the Bing Entity Search API to fetch additional
|
35
|
+
# relevant information.
|
36
|
+
attr_accessor :bing_id
|
37
|
+
|
38
|
+
# @return [String] Entity type from Named Entity Recognition model
|
39
|
+
attr_accessor :type
|
40
|
+
|
41
|
+
# @return [String] Entity sub type from Named Entity Recognition model
|
42
|
+
attr_accessor :sub_type
|
43
|
+
|
44
|
+
|
45
|
+
#
|
46
|
+
# Mapper for EntityRecord class as Ruby Hash.
|
47
|
+
# This will be used for serialization/deserialization.
|
48
|
+
#
|
49
|
+
def self.mapper()
|
50
|
+
{
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'EntityRecord',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'EntityRecord',
|
57
|
+
model_properties: {
|
58
|
+
name: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'name',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
matches: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'matches',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'MatchRecordElementType',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'MatchRecord'
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
wikipedia_language: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'wikipediaLanguage',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
},
|
91
|
+
wikipedia_id: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'wikipediaId',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
wikipedia_url: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
read_only: true,
|
103
|
+
serialized_name: 'wikipediaUrl',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
bing_id: {
|
109
|
+
client_side_validation: true,
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'bingId',
|
112
|
+
type: {
|
113
|
+
name: 'String'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
type: {
|
117
|
+
client_side_validation: true,
|
118
|
+
required: false,
|
119
|
+
serialized_name: 'type',
|
120
|
+
type: {
|
121
|
+
name: 'String'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
sub_type: {
|
125
|
+
client_side_validation: true,
|
126
|
+
required: false,
|
127
|
+
serialized_name: 'subType',
|
128
|
+
type: {
|
129
|
+
name: 'String'
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ErrorRecord
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Input document unique identifier the error refers to.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] Error message.
|
20
|
+
attr_accessor :message
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for ErrorRecord class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'ErrorRecord',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'ErrorRecord',
|
35
|
+
model_properties: {
|
36
|
+
id: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
message: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'message',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :code
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :message
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :target
|
24
|
+
|
25
|
+
# @return [InternalError]
|
26
|
+
attr_accessor :inner_error
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for ErrorResponse 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: 'ErrorResponse',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'ErrorResponse',
|
41
|
+
model_properties: {
|
42
|
+
code: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'code',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
message: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'message',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
target: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'target',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
inner_error: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'innerError',
|
70
|
+
type: {
|
71
|
+
name: 'Composite',
|
72
|
+
class_name: 'InternalError'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class InternalError
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :code
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :message
|
21
|
+
|
22
|
+
# @return [InternalError]
|
23
|
+
attr_accessor :inner_error
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for InternalError class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'InternalError',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'InternalError',
|
38
|
+
model_properties: {
|
39
|
+
code: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'code',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
message: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'message',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
inner_error: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'innerError',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'InternalError'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb
ADDED
@@ -0,0 +1,93 @@
|
|
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::TextAnalytics::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class KeyPhraseBatchResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<KeyPhraseBatchResultItem>] Response by document
|
17
|
+
attr_accessor :documents
|
18
|
+
|
19
|
+
# @return [Array<ErrorRecord>] Errors and Warnings by document
|
20
|
+
attr_accessor :errors
|
21
|
+
|
22
|
+
# @return [RequestStatistics] =(Optional) if showStats=true was specified
|
23
|
+
# in the request this field will contain information about the request
|
24
|
+
# payload.
|
25
|
+
attr_accessor :statistics
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for KeyPhraseBatchResult class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'KeyPhraseBatchResult',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'KeyPhraseBatchResult',
|
40
|
+
model_properties: {
|
41
|
+
documents: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'documents',
|
46
|
+
type: {
|
47
|
+
name: 'Sequence',
|
48
|
+
element: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'KeyPhraseBatchResultItemElementType',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'KeyPhraseBatchResultItem'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
errors: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'errors',
|
64
|
+
type: {
|
65
|
+
name: 'Sequence',
|
66
|
+
element: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'ErrorRecordElementType',
|
70
|
+
type: {
|
71
|
+
name: 'Composite',
|
72
|
+
class_name: 'ErrorRecord'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
},
|
77
|
+
statistics: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'statistics',
|
82
|
+
type: {
|
83
|
+
name: 'Composite',
|
84
|
+
class_name: 'RequestStatistics'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|