aws-sdk-comprehend 1.23.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-comprehend.rb +1 -1
- data/lib/aws-sdk-comprehend/client.rb +53 -23
- data/lib/aws-sdk-comprehend/client_api.rb +8 -0
- data/lib/aws-sdk-comprehend/types.rb +98 -28
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e960b0d437c07c04b94d93e6fb6e4b139c4b34c
|
4
|
+
data.tar.gz: 78510f90776bc3c626988ad208e8a6ceac36252e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b922dd22ccb923336d837fead8197b5ec7afb7ef1fb1c6bed1640e5b4ef9b17be05684fc5ba308a8523158efee5bab062dd0defa28a8507145312b1acac8d2ac
|
7
|
+
data.tar.gz: 7bfc4d274dcecdf8bb0e0d6713675fc674b74d9c5daa2c60419ef8c7ce12d361d061f4786c3b62b74a752fae612e4e26c9de673d8b70109cac582e1d289a33b5
|
data/lib/aws-sdk-comprehend.rb
CHANGED
@@ -320,8 +320,10 @@ module Aws::Comprehend
|
|
320
320
|
# than 5,000 bytes of UTF-8 encoded characters.
|
321
321
|
#
|
322
322
|
# @option params [required, String] :language_code
|
323
|
-
# The language of the input documents. You can specify
|
324
|
-
#
|
323
|
+
# The language of the input documents. You can specify any of the
|
324
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
325
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
326
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
325
327
|
#
|
326
328
|
# @return [Types::BatchDetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
327
329
|
#
|
@@ -367,8 +369,10 @@ module Aws::Comprehend
|
|
367
369
|
# that 5,000 bytes of UTF-8 encoded characters.
|
368
370
|
#
|
369
371
|
# @option params [required, String] :language_code
|
370
|
-
# The language of the input documents. You can specify
|
371
|
-
#
|
372
|
+
# The language of the input documents. You can specify any of the
|
373
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
374
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
375
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
372
376
|
#
|
373
377
|
# @return [Types::BatchDetectKeyPhrasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
374
378
|
#
|
@@ -415,8 +419,10 @@ module Aws::Comprehend
|
|
415
419
|
# that 5,000 bytes of UTF-8 encoded characters.
|
416
420
|
#
|
417
421
|
# @option params [required, String] :language_code
|
418
|
-
# The language of the input documents. You can specify
|
419
|
-
#
|
422
|
+
# The language of the input documents. You can specify any of the
|
423
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
424
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
425
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
420
426
|
#
|
421
427
|
# @return [Types::BatchDetectSentimentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
422
428
|
#
|
@@ -463,8 +469,10 @@ module Aws::Comprehend
|
|
463
469
|
# that 5,000 bytes of UTF-8 encoded characters.
|
464
470
|
#
|
465
471
|
# @option params [required, String] :language_code
|
466
|
-
# The language of the input documents. You can specify
|
467
|
-
#
|
472
|
+
# The language of the input documents. You can specify any of the
|
473
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
474
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
475
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
468
476
|
#
|
469
477
|
# @return [Types::BatchDetectSyntaxResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
470
478
|
#
|
@@ -539,8 +547,10 @@ module Aws::Comprehend
|
|
539
547
|
# not need to pass this option.**
|
540
548
|
#
|
541
549
|
# @option params [required, String] :language_code
|
542
|
-
# The language of the input documents. You can specify
|
543
|
-
#
|
550
|
+
# The language of the input documents. You can specify any of the
|
551
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
552
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
553
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
544
554
|
#
|
545
555
|
# @option params [String] :volume_kms_key_id
|
546
556
|
# ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
|
@@ -1008,6 +1018,10 @@ module Aws::Comprehend
|
|
1008
1018
|
# resp.entity_recognizer_properties.recognizer_metadata.evaluation_metrics.f1_score #=> Float
|
1009
1019
|
# resp.entity_recognizer_properties.recognizer_metadata.entity_types #=> Array
|
1010
1020
|
# resp.entity_recognizer_properties.recognizer_metadata.entity_types[0].type #=> String
|
1021
|
+
# resp.entity_recognizer_properties.recognizer_metadata.entity_types[0].evaluation_metrics.precision #=> Float
|
1022
|
+
# resp.entity_recognizer_properties.recognizer_metadata.entity_types[0].evaluation_metrics.recall #=> Float
|
1023
|
+
# resp.entity_recognizer_properties.recognizer_metadata.entity_types[0].evaluation_metrics.f1_score #=> Float
|
1024
|
+
# resp.entity_recognizer_properties.recognizer_metadata.entity_types[0].number_of_train_mentions #=> Integer
|
1011
1025
|
# resp.entity_recognizer_properties.data_access_role_arn #=> String
|
1012
1026
|
# resp.entity_recognizer_properties.volume_kms_key_id #=> String
|
1013
1027
|
# resp.entity_recognizer_properties.vpc_config.security_group_ids #=> Array
|
@@ -1206,8 +1220,10 @@ module Aws::Comprehend
|
|
1206
1220
|
# of UTF-8 encoded characters.
|
1207
1221
|
#
|
1208
1222
|
# @option params [required, String] :language_code
|
1209
|
-
# The language of the input documents. You can specify
|
1210
|
-
#
|
1223
|
+
# The language of the input documents. You can specify any of the
|
1224
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1225
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
1226
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
1211
1227
|
#
|
1212
1228
|
# @return [Types::DetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1213
1229
|
#
|
@@ -1245,8 +1261,10 @@ module Aws::Comprehend
|
|
1245
1261
|
# of UTF-8 encoded characters.
|
1246
1262
|
#
|
1247
1263
|
# @option params [required, String] :language_code
|
1248
|
-
# The language of the input documents. You can specify
|
1249
|
-
#
|
1264
|
+
# The language of the input documents. You can specify any of the
|
1265
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1266
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
1267
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
1250
1268
|
#
|
1251
1269
|
# @return [Types::DetectKeyPhrasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1252
1270
|
#
|
@@ -1284,8 +1302,10 @@ module Aws::Comprehend
|
|
1284
1302
|
# of UTF-8 encoded characters.
|
1285
1303
|
#
|
1286
1304
|
# @option params [required, String] :language_code
|
1287
|
-
# The language of the input documents. You can specify
|
1288
|
-
#
|
1305
|
+
# The language of the input documents. You can specify any of the
|
1306
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1307
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
1308
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
1289
1309
|
#
|
1290
1310
|
# @return [Types::DetectSentimentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1291
1311
|
#
|
@@ -1324,8 +1344,10 @@ module Aws::Comprehend
|
|
1324
1344
|
# encoded characters.
|
1325
1345
|
#
|
1326
1346
|
# @option params [required, String] :language_code
|
1327
|
-
# The language code of the input documents. You can specify
|
1328
|
-
#
|
1347
|
+
# The language code of the input documents. You can specify any of the
|
1348
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1349
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
1350
|
+
# or Portuguese ("pt").
|
1329
1351
|
#
|
1330
1352
|
# @return [Types::DetectSyntaxResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1331
1353
|
#
|
@@ -1678,6 +1700,10 @@ module Aws::Comprehend
|
|
1678
1700
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.evaluation_metrics.f1_score #=> Float
|
1679
1701
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types #=> Array
|
1680
1702
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types[0].type #=> String
|
1703
|
+
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types[0].evaluation_metrics.precision #=> Float
|
1704
|
+
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types[0].evaluation_metrics.recall #=> Float
|
1705
|
+
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types[0].evaluation_metrics.f1_score #=> Float
|
1706
|
+
# resp.entity_recognizer_properties_list[0].recognizer_metadata.entity_types[0].number_of_train_mentions #=> Integer
|
1681
1707
|
# resp.entity_recognizer_properties_list[0].data_access_role_arn #=> String
|
1682
1708
|
# resp.entity_recognizer_properties_list[0].volume_kms_key_id #=> String
|
1683
1709
|
# resp.entity_recognizer_properties_list[0].vpc_config.security_group_ids #=> Array
|
@@ -2228,8 +2254,10 @@ module Aws::Comprehend
|
|
2228
2254
|
# The identifier of the job.
|
2229
2255
|
#
|
2230
2256
|
# @option params [required, String] :language_code
|
2231
|
-
# The language of the input documents. You can specify
|
2232
|
-
#
|
2257
|
+
# The language of the input documents. You can specify any of the
|
2258
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
2259
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
2260
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
2233
2261
|
#
|
2234
2262
|
# @option params [String] :client_request_token
|
2235
2263
|
# A unique identifier for the request. If you don't set the client
|
@@ -2322,8 +2350,10 @@ module Aws::Comprehend
|
|
2322
2350
|
# The identifier of the job.
|
2323
2351
|
#
|
2324
2352
|
# @option params [required, String] :language_code
|
2325
|
-
# The language of the input documents. You can specify
|
2326
|
-
#
|
2353
|
+
# The language of the input documents. You can specify any of the
|
2354
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
2355
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
|
2356
|
+
# or Portuguese ("pt"). All documents must be in the same language.
|
2327
2357
|
#
|
2328
2358
|
# @option params [String] :client_request_token
|
2329
2359
|
# A unique identifier for the request. If you don't set the client
|
@@ -2798,7 +2828,7 @@ module Aws::Comprehend
|
|
2798
2828
|
params: params,
|
2799
2829
|
config: config)
|
2800
2830
|
context[:gem_name] = 'aws-sdk-comprehend'
|
2801
|
-
context[:gem_version] = '1.
|
2831
|
+
context[:gem_version] = '1.24.0'
|
2802
2832
|
Seahorse::Client::Request.new(handlers, context)
|
2803
2833
|
end
|
2804
2834
|
|
@@ -102,6 +102,7 @@ module Aws::Comprehend
|
|
102
102
|
EntityRecognizerPropertiesList = Shapes::ListShape.new(name: 'EntityRecognizerPropertiesList')
|
103
103
|
EntityType = Shapes::StringShape.new(name: 'EntityType')
|
104
104
|
EntityTypeName = Shapes::StringShape.new(name: 'EntityTypeName')
|
105
|
+
EntityTypesEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityTypesEvaluationMetrics')
|
105
106
|
EntityTypesList = Shapes::ListShape.new(name: 'EntityTypesList')
|
106
107
|
EntityTypesListItem = Shapes::StructureShape.new(name: 'EntityTypesListItem')
|
107
108
|
Float = Shapes::FloatShape.new(name: 'Float')
|
@@ -564,6 +565,8 @@ module Aws::Comprehend
|
|
564
565
|
EntityRecognizerMetadataEntityTypesList.member = Shapes::ShapeRef.new(shape: EntityRecognizerMetadataEntityTypesListItem)
|
565
566
|
|
566
567
|
EntityRecognizerMetadataEntityTypesListItem.add_member(:type, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Type"))
|
568
|
+
EntityRecognizerMetadataEntityTypesListItem.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: EntityTypesEvaluationMetrics, location_name: "EvaluationMetrics"))
|
569
|
+
EntityRecognizerMetadataEntityTypesListItem.add_member(:number_of_train_mentions, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfTrainMentions"))
|
567
570
|
EntityRecognizerMetadataEntityTypesListItem.struct_class = Types::EntityRecognizerMetadataEntityTypesListItem
|
568
571
|
|
569
572
|
EntityRecognizerProperties.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, location_name: "EntityRecognizerArn"))
|
@@ -583,6 +586,11 @@ module Aws::Comprehend
|
|
583
586
|
|
584
587
|
EntityRecognizerPropertiesList.member = Shapes::ShapeRef.new(shape: EntityRecognizerProperties)
|
585
588
|
|
589
|
+
EntityTypesEvaluationMetrics.add_member(:precision, Shapes::ShapeRef.new(shape: Double, location_name: "Precision"))
|
590
|
+
EntityTypesEvaluationMetrics.add_member(:recall, Shapes::ShapeRef.new(shape: Double, location_name: "Recall"))
|
591
|
+
EntityTypesEvaluationMetrics.add_member(:f1_score, Shapes::ShapeRef.new(shape: Double, location_name: "F1Score"))
|
592
|
+
EntityTypesEvaluationMetrics.struct_class = Types::EntityTypesEvaluationMetrics
|
593
|
+
|
586
594
|
EntityTypesList.member = Shapes::ShapeRef.new(shape: EntityTypesListItem)
|
587
595
|
|
588
596
|
EntityTypesListItem.add_member(:type, Shapes::ShapeRef.new(shape: EntityTypeName, required: true, location_name: "Type"))
|
@@ -106,8 +106,10 @@ module Aws::Comprehend
|
|
106
106
|
# @return [Array<String>]
|
107
107
|
#
|
108
108
|
# @!attribute [rw] language_code
|
109
|
-
# The language of the input documents. You can specify
|
110
|
-
#
|
109
|
+
# The language of the input documents. You can specify any of the
|
110
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
111
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
112
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
111
113
|
# language.
|
112
114
|
# @return [String]
|
113
115
|
#
|
@@ -176,8 +178,10 @@ module Aws::Comprehend
|
|
176
178
|
# @return [Array<String>]
|
177
179
|
#
|
178
180
|
# @!attribute [rw] language_code
|
179
|
-
# The language of the input documents. You can specify
|
180
|
-
#
|
181
|
+
# The language of the input documents. You can specify any of the
|
182
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
183
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
184
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
181
185
|
# language.
|
182
186
|
# @return [String]
|
183
187
|
#
|
@@ -251,8 +255,10 @@ module Aws::Comprehend
|
|
251
255
|
# @return [Array<String>]
|
252
256
|
#
|
253
257
|
# @!attribute [rw] language_code
|
254
|
-
# The language of the input documents. You can specify
|
255
|
-
#
|
258
|
+
# The language of the input documents. You can specify any of the
|
259
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
260
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
261
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
256
262
|
# language.
|
257
263
|
# @return [String]
|
258
264
|
#
|
@@ -321,8 +327,10 @@ module Aws::Comprehend
|
|
321
327
|
# @return [Array<String>]
|
322
328
|
#
|
323
329
|
# @!attribute [rw] language_code
|
324
|
-
# The language of the input documents. You can specify
|
325
|
-
#
|
330
|
+
# The language of the input documents. You can specify any of the
|
331
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
332
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
333
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
326
334
|
# language.
|
327
335
|
# @return [String]
|
328
336
|
#
|
@@ -543,8 +551,10 @@ module Aws::Comprehend
|
|
543
551
|
# @return [String]
|
544
552
|
#
|
545
553
|
# @!attribute [rw] language_code
|
546
|
-
# The language of the input documents. You can specify
|
547
|
-
#
|
554
|
+
# The language of the input documents. You can specify any of the
|
555
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
556
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
557
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
548
558
|
# language.
|
549
559
|
# @return [String]
|
550
560
|
#
|
@@ -1066,8 +1076,10 @@ module Aws::Comprehend
|
|
1066
1076
|
# @return [String]
|
1067
1077
|
#
|
1068
1078
|
# @!attribute [rw] language_code
|
1069
|
-
# The language of the input documents. You can specify
|
1070
|
-
#
|
1079
|
+
# The language of the input documents. You can specify any of the
|
1080
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1081
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
1082
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
1071
1083
|
# language.
|
1072
1084
|
# @return [String]
|
1073
1085
|
#
|
@@ -1108,8 +1120,10 @@ module Aws::Comprehend
|
|
1108
1120
|
# @return [String]
|
1109
1121
|
#
|
1110
1122
|
# @!attribute [rw] language_code
|
1111
|
-
# The language of the input documents. You can specify
|
1112
|
-
#
|
1123
|
+
# The language of the input documents. You can specify any of the
|
1124
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1125
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
1126
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
1113
1127
|
# language.
|
1114
1128
|
# @return [String]
|
1115
1129
|
#
|
@@ -1150,8 +1164,10 @@ module Aws::Comprehend
|
|
1150
1164
|
# @return [String]
|
1151
1165
|
#
|
1152
1166
|
# @!attribute [rw] language_code
|
1153
|
-
# The language of the input documents. You can specify
|
1154
|
-
#
|
1167
|
+
# The language of the input documents. You can specify any of the
|
1168
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1169
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
1170
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
1155
1171
|
# language.
|
1156
1172
|
# @return [String]
|
1157
1173
|
#
|
@@ -1195,8 +1211,10 @@ module Aws::Comprehend
|
|
1195
1211
|
# @return [String]
|
1196
1212
|
#
|
1197
1213
|
# @!attribute [rw] language_code
|
1198
|
-
# The language code of the input documents. You can specify
|
1199
|
-
#
|
1214
|
+
# The language code of the input documents. You can specify any of the
|
1215
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
1216
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
1217
|
+
# ("it"), or Portuguese ("pt").
|
1200
1218
|
# @return [String]
|
1201
1219
|
#
|
1202
1220
|
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntaxRequest AWS API Documentation
|
@@ -2082,7 +2100,9 @@ module Aws::Comprehend
|
|
2082
2100
|
# }
|
2083
2101
|
#
|
2084
2102
|
# @!attribute [rw] entity_types
|
2085
|
-
# The entity types in the input data for an entity recognizer.
|
2103
|
+
# The entity types in the input data for an entity recognizer. A
|
2104
|
+
# maximum of 12 entity types can be used at one time to train an
|
2105
|
+
# entity recognizer.
|
2086
2106
|
# @return [Array<Types::EntityTypesListItem>]
|
2087
2107
|
#
|
2088
2108
|
# @!attribute [rw] documents
|
@@ -2147,10 +2167,22 @@ module Aws::Comprehend
|
|
2147
2167
|
# entity recognizer.
|
2148
2168
|
# @return [String]
|
2149
2169
|
#
|
2170
|
+
# @!attribute [rw] evaluation_metrics
|
2171
|
+
# Detailed information about the accuracy of the entity recognizer for
|
2172
|
+
# a specific item on the list of entity types.
|
2173
|
+
# @return [Types::EntityTypesEvaluationMetrics]
|
2174
|
+
#
|
2175
|
+
# @!attribute [rw] number_of_train_mentions
|
2176
|
+
# indicates the number of times the given entity name was seen in the
|
2177
|
+
# training data.
|
2178
|
+
# @return [Integer]
|
2179
|
+
#
|
2150
2180
|
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerMetadataEntityTypesListItem AWS API Documentation
|
2151
2181
|
#
|
2152
2182
|
class EntityRecognizerMetadataEntityTypesListItem < Struct.new(
|
2153
|
-
:type
|
2183
|
+
:type,
|
2184
|
+
:evaluation_metrics,
|
2185
|
+
:number_of_train_mentions)
|
2154
2186
|
include Aws::Structure
|
2155
2187
|
end
|
2156
2188
|
|
@@ -2245,6 +2277,39 @@ module Aws::Comprehend
|
|
2245
2277
|
include Aws::Structure
|
2246
2278
|
end
|
2247
2279
|
|
2280
|
+
# Detailed information about the accuracy of an entity recognizer for a
|
2281
|
+
# specific entity type.
|
2282
|
+
#
|
2283
|
+
# @!attribute [rw] precision
|
2284
|
+
# A measure of the usefulness of the recognizer results for a specific
|
2285
|
+
# entity type in the test data. High precision means that the
|
2286
|
+
# recognizer returned substantially more relevant results than
|
2287
|
+
# irrelevant ones.
|
2288
|
+
# @return [Float]
|
2289
|
+
#
|
2290
|
+
# @!attribute [rw] recall
|
2291
|
+
# A measure of how complete the recognizer results are for a specific
|
2292
|
+
# entity type in the test data. High recall means that the recognizer
|
2293
|
+
# returned most of the relevant results.
|
2294
|
+
# @return [Float]
|
2295
|
+
#
|
2296
|
+
# @!attribute [rw] f1_score
|
2297
|
+
# A measure of how accurate the recognizer results are for for a
|
2298
|
+
# specific entity type in the test data. It is derived from the
|
2299
|
+
# `Precision` and `Recall` values. The `F1Score` is the harmonic
|
2300
|
+
# average of the two scores. The highest score is 1, and the worst
|
2301
|
+
# score is 0.
|
2302
|
+
# @return [Float]
|
2303
|
+
#
|
2304
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityTypesEvaluationMetrics AWS API Documentation
|
2305
|
+
#
|
2306
|
+
class EntityTypesEvaluationMetrics < Struct.new(
|
2307
|
+
:precision,
|
2308
|
+
:recall,
|
2309
|
+
:f1_score)
|
2310
|
+
include Aws::Structure
|
2311
|
+
end
|
2312
|
+
|
2248
2313
|
# Information about an individual item on a list of entity types.
|
2249
2314
|
#
|
2250
2315
|
# @note When making an API call, you may pass EntityTypesListItem
|
@@ -2319,8 +2384,8 @@ module Aws::Comprehend
|
|
2319
2384
|
include Aws::Structure
|
2320
2385
|
end
|
2321
2386
|
|
2322
|
-
# The filter specified for the
|
2323
|
-
#
|
2387
|
+
# The filter specified for the operation is invalid. Specify a different
|
2388
|
+
# filter.
|
2324
2389
|
#
|
2325
2390
|
# @!attribute [rw] message
|
2326
2391
|
# @return [String]
|
@@ -3723,8 +3788,10 @@ module Aws::Comprehend
|
|
3723
3788
|
# @return [String]
|
3724
3789
|
#
|
3725
3790
|
# @!attribute [rw] language_code
|
3726
|
-
# The language of the input documents. You can specify
|
3727
|
-
#
|
3791
|
+
# The language of the input documents. You can specify any of the
|
3792
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
3793
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
3794
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
3728
3795
|
# language.
|
3729
3796
|
# @return [String]
|
3730
3797
|
#
|
@@ -3847,8 +3914,10 @@ module Aws::Comprehend
|
|
3847
3914
|
# @return [String]
|
3848
3915
|
#
|
3849
3916
|
# @!attribute [rw] language_code
|
3850
|
-
# The language of the input documents. You can specify
|
3851
|
-
#
|
3917
|
+
# The language of the input documents. You can specify any of the
|
3918
|
+
# primary languages supported by Amazon Comprehend: German ("de"),
|
3919
|
+
# English ("en"), Spanish ("es"), French ("fr"), Italian
|
3920
|
+
# ("it"), or Portuguese ("pt"). All documents must be in the same
|
3852
3921
|
# language.
|
3853
3922
|
# @return [String]
|
3854
3923
|
#
|
@@ -4538,8 +4607,9 @@ module Aws::Comprehend
|
|
4538
4607
|
|
4539
4608
|
# Amazon Comprehend can't process the language of the input text. For
|
4540
4609
|
# all custom entity recognition APIs (such as `CreateEntityRecognizer`),
|
4541
|
-
# only English is accepted. For most other APIs,
|
4542
|
-
#
|
4610
|
+
# only English is accepted. For most other APIs, such as those for
|
4611
|
+
# Custom Classification, Amazon Comprehend accepts text in all supported
|
4612
|
+
# languages. For a list of supported languages, see supported-languages.
|
4543
4613
|
#
|
4544
4614
|
# @!attribute [rw] message
|
4545
4615
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-comprehend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|