@aws-sdk/client-comprehend 3.171.0 → 3.178.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.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/Comprehend.js +30 -0
- package/dist-cjs/commands/BatchDetectTargetedSentimentCommand.js +36 -0
- package/dist-cjs/commands/DetectTargetedSentimentCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +59 -5
- package/dist-cjs/protocols/Aws_json1_1.js +218 -3
- package/dist-es/Comprehend.js +30 -0
- package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +39 -0
- package/dist-es/commands/DetectTargetedSentimentCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +252 -0
- package/dist-types/Comprehend.d.ts +31 -6
- package/dist-types/ComprehendClient.d.ts +4 -2
- package/dist-types/commands/BatchDetectEntitiesCommand.d.ts +3 -2
- package/dist-types/commands/BatchDetectSyntaxCommand.d.ts +3 -1
- package/dist-types/commands/BatchDetectTargetedSentimentCommand.d.ts +37 -0
- package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +3 -1
- package/dist-types/commands/DetectEntitiesCommand.d.ts +2 -1
- package/dist-types/commands/DetectSyntaxCommand.d.ts +3 -1
- package/dist-types/commands/DetectTargetedSentimentCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +230 -68
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Comprehend.d.ts +34 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchDetectTargetedSentimentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DetectTargetedSentimentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +79 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +26 -26
|
@@ -59,6 +59,17 @@ export var serializeAws_json1_1BatchDetectSyntaxCommand = function (input, conte
|
|
|
59
59
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
60
60
|
});
|
|
61
61
|
}); };
|
|
62
|
+
export var serializeAws_json1_1BatchDetectTargetedSentimentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
var headers, body;
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
headers = {
|
|
66
|
+
"content-type": "application/x-amz-json-1.1",
|
|
67
|
+
"x-amz-target": "Comprehend_20171127.BatchDetectTargetedSentiment",
|
|
68
|
+
};
|
|
69
|
+
body = JSON.stringify(serializeAws_json1_1BatchDetectTargetedSentimentRequest(input, context));
|
|
70
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
71
|
+
});
|
|
72
|
+
}); };
|
|
62
73
|
export var serializeAws_json1_1ClassifyDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
74
|
var headers, body;
|
|
64
75
|
return __generator(this, function (_a) {
|
|
@@ -367,6 +378,17 @@ export var serializeAws_json1_1DetectSyntaxCommand = function (input, context) {
|
|
|
367
378
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
368
379
|
});
|
|
369
380
|
}); };
|
|
381
|
+
export var serializeAws_json1_1DetectTargetedSentimentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
382
|
+
var headers, body;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
headers = {
|
|
385
|
+
"content-type": "application/x-amz-json-1.1",
|
|
386
|
+
"x-amz-target": "Comprehend_20171127.DetectTargetedSentiment",
|
|
387
|
+
};
|
|
388
|
+
body = JSON.stringify(serializeAws_json1_1DetectTargetedSentimentRequest(input, context));
|
|
389
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
390
|
+
});
|
|
391
|
+
}); };
|
|
370
392
|
export var serializeAws_json1_1ImportModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
393
|
var headers, body;
|
|
372
394
|
return __generator(this, function (_a) {
|
|
@@ -1116,6 +1138,73 @@ var deserializeAws_json1_1BatchDetectSyntaxCommandError = function (output, cont
|
|
|
1116
1138
|
}
|
|
1117
1139
|
});
|
|
1118
1140
|
}); };
|
|
1141
|
+
export var deserializeAws_json1_1BatchDetectTargetedSentimentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1142
|
+
var data, contents, response;
|
|
1143
|
+
return __generator(this, function (_a) {
|
|
1144
|
+
switch (_a.label) {
|
|
1145
|
+
case 0:
|
|
1146
|
+
if (output.statusCode >= 300) {
|
|
1147
|
+
return [2, deserializeAws_json1_1BatchDetectTargetedSentimentCommandError(output, context)];
|
|
1148
|
+
}
|
|
1149
|
+
return [4, parseBody(output.body, context)];
|
|
1150
|
+
case 1:
|
|
1151
|
+
data = _a.sent();
|
|
1152
|
+
contents = {};
|
|
1153
|
+
contents = deserializeAws_json1_1BatchDetectTargetedSentimentResponse(data, context);
|
|
1154
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1155
|
+
return [2, Promise.resolve(response)];
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
}); };
|
|
1159
|
+
var deserializeAws_json1_1BatchDetectTargetedSentimentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1160
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1161
|
+
var _c;
|
|
1162
|
+
return __generator(this, function (_d) {
|
|
1163
|
+
switch (_d.label) {
|
|
1164
|
+
case 0:
|
|
1165
|
+
_a = [__assign({}, output)];
|
|
1166
|
+
_c = {};
|
|
1167
|
+
return [4, parseBody(output.body, context)];
|
|
1168
|
+
case 1:
|
|
1169
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1170
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
+
_b = errorCode;
|
|
1172
|
+
switch (_b) {
|
|
1173
|
+
case "BatchSizeLimitExceededException": return [3, 2];
|
|
1174
|
+
case "com.amazonaws.comprehend#BatchSizeLimitExceededException": return [3, 2];
|
|
1175
|
+
case "InternalServerException": return [3, 4];
|
|
1176
|
+
case "com.amazonaws.comprehend#InternalServerException": return [3, 4];
|
|
1177
|
+
case "InvalidRequestException": return [3, 6];
|
|
1178
|
+
case "com.amazonaws.comprehend#InvalidRequestException": return [3, 6];
|
|
1179
|
+
case "TextSizeLimitExceededException": return [3, 8];
|
|
1180
|
+
case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3, 8];
|
|
1181
|
+
case "UnsupportedLanguageException": return [3, 10];
|
|
1182
|
+
case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3, 10];
|
|
1183
|
+
}
|
|
1184
|
+
return [3, 12];
|
|
1185
|
+
case 2: return [4, deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1186
|
+
case 3: throw _d.sent();
|
|
1187
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 5: throw _d.sent();
|
|
1189
|
+
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 7: throw _d.sent();
|
|
1191
|
+
case 8: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1192
|
+
case 9: throw _d.sent();
|
|
1193
|
+
case 10: return [4, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)];
|
|
1194
|
+
case 11: throw _d.sent();
|
|
1195
|
+
case 12:
|
|
1196
|
+
parsedBody = parsedOutput.body;
|
|
1197
|
+
throwDefaultError({
|
|
1198
|
+
output: output,
|
|
1199
|
+
parsedBody: parsedBody,
|
|
1200
|
+
exceptionCtor: __BaseException,
|
|
1201
|
+
errorCode: errorCode,
|
|
1202
|
+
});
|
|
1203
|
+
_d.label = 13;
|
|
1204
|
+
case 13: return [2];
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
}); };
|
|
1119
1208
|
export var deserializeAws_json1_1ClassifyDocumentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1120
1209
|
var data, contents, response;
|
|
1121
1210
|
return __generator(this, function (_a) {
|
|
@@ -2940,6 +3029,69 @@ var deserializeAws_json1_1DetectSyntaxCommandError = function (output, context)
|
|
|
2940
3029
|
}
|
|
2941
3030
|
});
|
|
2942
3031
|
}); };
|
|
3032
|
+
export var deserializeAws_json1_1DetectTargetedSentimentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3033
|
+
var data, contents, response;
|
|
3034
|
+
return __generator(this, function (_a) {
|
|
3035
|
+
switch (_a.label) {
|
|
3036
|
+
case 0:
|
|
3037
|
+
if (output.statusCode >= 300) {
|
|
3038
|
+
return [2, deserializeAws_json1_1DetectTargetedSentimentCommandError(output, context)];
|
|
3039
|
+
}
|
|
3040
|
+
return [4, parseBody(output.body, context)];
|
|
3041
|
+
case 1:
|
|
3042
|
+
data = _a.sent();
|
|
3043
|
+
contents = {};
|
|
3044
|
+
contents = deserializeAws_json1_1DetectTargetedSentimentResponse(data, context);
|
|
3045
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3046
|
+
return [2, Promise.resolve(response)];
|
|
3047
|
+
}
|
|
3048
|
+
});
|
|
3049
|
+
}); };
|
|
3050
|
+
var deserializeAws_json1_1DetectTargetedSentimentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3051
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3052
|
+
var _c;
|
|
3053
|
+
return __generator(this, function (_d) {
|
|
3054
|
+
switch (_d.label) {
|
|
3055
|
+
case 0:
|
|
3056
|
+
_a = [__assign({}, output)];
|
|
3057
|
+
_c = {};
|
|
3058
|
+
return [4, parseBody(output.body, context)];
|
|
3059
|
+
case 1:
|
|
3060
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3061
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3062
|
+
_b = errorCode;
|
|
3063
|
+
switch (_b) {
|
|
3064
|
+
case "InternalServerException": return [3, 2];
|
|
3065
|
+
case "com.amazonaws.comprehend#InternalServerException": return [3, 2];
|
|
3066
|
+
case "InvalidRequestException": return [3, 4];
|
|
3067
|
+
case "com.amazonaws.comprehend#InvalidRequestException": return [3, 4];
|
|
3068
|
+
case "TextSizeLimitExceededException": return [3, 6];
|
|
3069
|
+
case "com.amazonaws.comprehend#TextSizeLimitExceededException": return [3, 6];
|
|
3070
|
+
case "UnsupportedLanguageException": return [3, 8];
|
|
3071
|
+
case "com.amazonaws.comprehend#UnsupportedLanguageException": return [3, 8];
|
|
3072
|
+
}
|
|
3073
|
+
return [3, 10];
|
|
3074
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3075
|
+
case 3: throw _d.sent();
|
|
3076
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
3077
|
+
case 5: throw _d.sent();
|
|
3078
|
+
case 6: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3079
|
+
case 7: throw _d.sent();
|
|
3080
|
+
case 8: return [4, deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context)];
|
|
3081
|
+
case 9: throw _d.sent();
|
|
3082
|
+
case 10:
|
|
3083
|
+
parsedBody = parsedOutput.body;
|
|
3084
|
+
throwDefaultError({
|
|
3085
|
+
output: output,
|
|
3086
|
+
parsedBody: parsedBody,
|
|
3087
|
+
exceptionCtor: __BaseException,
|
|
3088
|
+
errorCode: errorCode,
|
|
3089
|
+
});
|
|
3090
|
+
_d.label = 11;
|
|
3091
|
+
case 11: return [2];
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
}); };
|
|
2943
3095
|
export var deserializeAws_json1_1ImportModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2944
3096
|
var data, contents, response;
|
|
2945
3097
|
return __generator(this, function (_a) {
|
|
@@ -5549,6 +5701,9 @@ var serializeAws_json1_1BatchDetectSentimentRequest = function (input, context)
|
|
|
5549
5701
|
var serializeAws_json1_1BatchDetectSyntaxRequest = function (input, context) {
|
|
5550
5702
|
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5551
5703
|
};
|
|
5704
|
+
var serializeAws_json1_1BatchDetectTargetedSentimentRequest = function (input, context) {
|
|
5705
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }));
|
|
5706
|
+
};
|
|
5552
5707
|
var serializeAws_json1_1ClassifyDocumentRequest = function (input, context) {
|
|
5553
5708
|
return __assign(__assign({}, (input.EndpointArn != null && { EndpointArn: input.EndpointArn })), (input.Text != null && { Text: input.Text }));
|
|
5554
5709
|
};
|
|
@@ -5649,6 +5804,9 @@ var serializeAws_json1_1DetectSentimentRequest = function (input, context) {
|
|
|
5649
5804
|
var serializeAws_json1_1DetectSyntaxRequest = function (input, context) {
|
|
5650
5805
|
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5651
5806
|
};
|
|
5807
|
+
var serializeAws_json1_1DetectTargetedSentimentRequest = function (input, context) {
|
|
5808
|
+
return __assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text }));
|
|
5809
|
+
};
|
|
5652
5810
|
var serializeAws_json1_1DocumentClassificationJobFilter = function (input, context) {
|
|
5653
5811
|
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
5654
5812
|
};
|
|
@@ -6075,6 +6233,22 @@ var deserializeAws_json1_1BatchDetectSyntaxResponse = function (output, context)
|
|
|
6075
6233
|
: undefined,
|
|
6076
6234
|
};
|
|
6077
6235
|
};
|
|
6236
|
+
var deserializeAws_json1_1BatchDetectTargetedSentimentItemResult = function (output, context) {
|
|
6237
|
+
return {
|
|
6238
|
+
Entities: output.Entities != null
|
|
6239
|
+
? deserializeAws_json1_1ListOfTargetedSentimentEntities(output.Entities, context)
|
|
6240
|
+
: undefined,
|
|
6241
|
+
Index: __expectInt32(output.Index),
|
|
6242
|
+
};
|
|
6243
|
+
};
|
|
6244
|
+
var deserializeAws_json1_1BatchDetectTargetedSentimentResponse = function (output, context) {
|
|
6245
|
+
return {
|
|
6246
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
6247
|
+
ResultList: output.ResultList != null
|
|
6248
|
+
? deserializeAws_json1_1ListOfDetectTargetedSentimentResult(output.ResultList, context)
|
|
6249
|
+
: undefined,
|
|
6250
|
+
};
|
|
6251
|
+
};
|
|
6078
6252
|
var deserializeAws_json1_1BatchItemError = function (output, context) {
|
|
6079
6253
|
return {
|
|
6080
6254
|
ErrorCode: __expectString(output.ErrorCode),
|
|
@@ -6290,6 +6464,13 @@ var deserializeAws_json1_1DetectSyntaxResponse = function (output, context) {
|
|
|
6290
6464
|
SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
|
|
6291
6465
|
};
|
|
6292
6466
|
};
|
|
6467
|
+
var deserializeAws_json1_1DetectTargetedSentimentResponse = function (output, context) {
|
|
6468
|
+
return {
|
|
6469
|
+
Entities: output.Entities != null
|
|
6470
|
+
? deserializeAws_json1_1ListOfTargetedSentimentEntities(output.Entities, context)
|
|
6471
|
+
: undefined,
|
|
6472
|
+
};
|
|
6473
|
+
};
|
|
6293
6474
|
var deserializeAws_json1_1DocumentClass = function (output, context) {
|
|
6294
6475
|
return {
|
|
6295
6476
|
Name: __expectString(output.Name),
|
|
@@ -6922,6 +7103,17 @@ var deserializeAws_json1_1ListOfClasses = function (output, context) {
|
|
|
6922
7103
|
});
|
|
6923
7104
|
return retVal;
|
|
6924
7105
|
};
|
|
7106
|
+
var deserializeAws_json1_1ListOfDescriptiveMentionIndices = function (output, context) {
|
|
7107
|
+
var retVal = (output || [])
|
|
7108
|
+
.filter(function (e) { return e != null; })
|
|
7109
|
+
.map(function (entry) {
|
|
7110
|
+
if (entry === null) {
|
|
7111
|
+
return null;
|
|
7112
|
+
}
|
|
7113
|
+
return __expectInt32(entry);
|
|
7114
|
+
});
|
|
7115
|
+
return retVal;
|
|
7116
|
+
};
|
|
6925
7117
|
var deserializeAws_json1_1ListOfDetectDominantLanguageResult = function (output, context) {
|
|
6926
7118
|
var retVal = (output || [])
|
|
6927
7119
|
.filter(function (e) { return e != null; })
|
|
@@ -6977,6 +7169,17 @@ var deserializeAws_json1_1ListOfDetectSyntaxResult = function (output, context)
|
|
|
6977
7169
|
});
|
|
6978
7170
|
return retVal;
|
|
6979
7171
|
};
|
|
7172
|
+
var deserializeAws_json1_1ListOfDetectTargetedSentimentResult = function (output, context) {
|
|
7173
|
+
var retVal = (output || [])
|
|
7174
|
+
.filter(function (e) { return e != null; })
|
|
7175
|
+
.map(function (entry) {
|
|
7176
|
+
if (entry === null) {
|
|
7177
|
+
return null;
|
|
7178
|
+
}
|
|
7179
|
+
return deserializeAws_json1_1BatchDetectTargetedSentimentItemResult(entry, context);
|
|
7180
|
+
});
|
|
7181
|
+
return retVal;
|
|
7182
|
+
};
|
|
6980
7183
|
var deserializeAws_json1_1ListOfDocumentReadFeatureTypes = function (output, context) {
|
|
6981
7184
|
var retVal = (output || [])
|
|
6982
7185
|
.filter(function (e) { return e != null; })
|
|
@@ -7043,6 +7246,17 @@ var deserializeAws_json1_1ListOfLabels = function (output, context) {
|
|
|
7043
7246
|
});
|
|
7044
7247
|
return retVal;
|
|
7045
7248
|
};
|
|
7249
|
+
var deserializeAws_json1_1ListOfMentions = function (output, context) {
|
|
7250
|
+
var retVal = (output || [])
|
|
7251
|
+
.filter(function (e) { return e != null; })
|
|
7252
|
+
.map(function (entry) {
|
|
7253
|
+
if (entry === null) {
|
|
7254
|
+
return null;
|
|
7255
|
+
}
|
|
7256
|
+
return deserializeAws_json1_1TargetedSentimentMention(entry, context);
|
|
7257
|
+
});
|
|
7258
|
+
return retVal;
|
|
7259
|
+
};
|
|
7046
7260
|
var deserializeAws_json1_1ListOfPiiEntities = function (output, context) {
|
|
7047
7261
|
var retVal = (output || [])
|
|
7048
7262
|
.filter(function (e) { return e != null; })
|
|
@@ -7076,6 +7290,17 @@ var deserializeAws_json1_1ListOfSyntaxTokens = function (output, context) {
|
|
|
7076
7290
|
});
|
|
7077
7291
|
return retVal;
|
|
7078
7292
|
};
|
|
7293
|
+
var deserializeAws_json1_1ListOfTargetedSentimentEntities = function (output, context) {
|
|
7294
|
+
var retVal = (output || [])
|
|
7295
|
+
.filter(function (e) { return e != null; })
|
|
7296
|
+
.map(function (entry) {
|
|
7297
|
+
if (entry === null) {
|
|
7298
|
+
return null;
|
|
7299
|
+
}
|
|
7300
|
+
return deserializeAws_json1_1TargetedSentimentEntity(entry, context);
|
|
7301
|
+
});
|
|
7302
|
+
return retVal;
|
|
7303
|
+
};
|
|
7079
7304
|
var deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = function (output, context) {
|
|
7080
7305
|
return {
|
|
7081
7306
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7114,6 +7339,12 @@ var deserializeAws_json1_1ListTopicsDetectionJobsResponse = function (output, co
|
|
|
7114
7339
|
: undefined,
|
|
7115
7340
|
};
|
|
7116
7341
|
};
|
|
7342
|
+
var deserializeAws_json1_1MentionSentiment = function (output, context) {
|
|
7343
|
+
return {
|
|
7344
|
+
Sentiment: __expectString(output.Sentiment),
|
|
7345
|
+
SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
|
|
7346
|
+
};
|
|
7347
|
+
};
|
|
7117
7348
|
var deserializeAws_json1_1OutputDataConfig = function (output, context) {
|
|
7118
7349
|
return {
|
|
7119
7350
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
@@ -7442,6 +7673,27 @@ var deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = function
|
|
|
7442
7673
|
});
|
|
7443
7674
|
return retVal;
|
|
7444
7675
|
};
|
|
7676
|
+
var deserializeAws_json1_1TargetedSentimentEntity = function (output, context) {
|
|
7677
|
+
return {
|
|
7678
|
+
DescriptiveMentionIndex: output.DescriptiveMentionIndex != null
|
|
7679
|
+
? deserializeAws_json1_1ListOfDescriptiveMentionIndices(output.DescriptiveMentionIndex, context)
|
|
7680
|
+
: undefined,
|
|
7681
|
+
Mentions: output.Mentions != null ? deserializeAws_json1_1ListOfMentions(output.Mentions, context) : undefined,
|
|
7682
|
+
};
|
|
7683
|
+
};
|
|
7684
|
+
var deserializeAws_json1_1TargetedSentimentMention = function (output, context) {
|
|
7685
|
+
return {
|
|
7686
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
7687
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
7688
|
+
GroupScore: __limitedParseFloat32(output.GroupScore),
|
|
7689
|
+
MentionSentiment: output.MentionSentiment != null
|
|
7690
|
+
? deserializeAws_json1_1MentionSentiment(output.MentionSentiment, context)
|
|
7691
|
+
: undefined,
|
|
7692
|
+
Score: __limitedParseFloat32(output.Score),
|
|
7693
|
+
Text: __expectString(output.Text),
|
|
7694
|
+
Type: __expectString(output.Type),
|
|
7695
|
+
};
|
|
7696
|
+
};
|
|
7445
7697
|
var deserializeAws_json1_1TargetEventTypes = function (output, context) {
|
|
7446
7698
|
var retVal = (output || [])
|
|
7447
7699
|
.filter(function (e) { return e != null; })
|
|
@@ -4,6 +4,7 @@ import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } fro
|
|
|
4
4
|
import { BatchDetectKeyPhrasesCommandInput, BatchDetectKeyPhrasesCommandOutput } from "./commands/BatchDetectKeyPhrasesCommand";
|
|
5
5
|
import { BatchDetectSentimentCommandInput, BatchDetectSentimentCommandOutput } from "./commands/BatchDetectSentimentCommand";
|
|
6
6
|
import { BatchDetectSyntaxCommandInput, BatchDetectSyntaxCommandOutput } from "./commands/BatchDetectSyntaxCommand";
|
|
7
|
+
import { BatchDetectTargetedSentimentCommandInput, BatchDetectTargetedSentimentCommandOutput } from "./commands/BatchDetectTargetedSentimentCommand";
|
|
7
8
|
import { ClassifyDocumentCommandInput, ClassifyDocumentCommandOutput } from "./commands/ClassifyDocumentCommand";
|
|
8
9
|
import { ContainsPiiEntitiesCommandInput, ContainsPiiEntitiesCommandOutput } from "./commands/ContainsPiiEntitiesCommand";
|
|
9
10
|
import { CreateDocumentClassifierCommandInput, CreateDocumentClassifierCommandOutput } from "./commands/CreateDocumentClassifierCommand";
|
|
@@ -32,6 +33,7 @@ import { DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput } from "./c
|
|
|
32
33
|
import { DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput } from "./commands/DetectPiiEntitiesCommand";
|
|
33
34
|
import { DetectSentimentCommandInput, DetectSentimentCommandOutput } from "./commands/DetectSentimentCommand";
|
|
34
35
|
import { DetectSyntaxCommandInput, DetectSyntaxCommandOutput } from "./commands/DetectSyntaxCommand";
|
|
36
|
+
import { DetectTargetedSentimentCommandInput, DetectTargetedSentimentCommandOutput } from "./commands/DetectTargetedSentimentCommand";
|
|
35
37
|
import { ImportModelCommandInput, ImportModelCommandOutput } from "./commands/ImportModelCommand";
|
|
36
38
|
import { ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput } from "./commands/ListDocumentClassificationJobsCommand";
|
|
37
39
|
import { ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput } from "./commands/ListDocumentClassifiersCommand";
|
|
@@ -88,8 +90,9 @@ export declare class Comprehend extends ComprehendClient {
|
|
|
88
90
|
batchDetectDominantLanguage(args: BatchDetectDominantLanguageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDetectDominantLanguageCommandOutput) => void): void;
|
|
89
91
|
/**
|
|
90
92
|
* <p>Inspects the text of a batch of documents for named entities and returns information
|
|
91
|
-
* about them. For more information about named entities, see
|
|
92
|
-
*
|
|
93
|
+
* about them. For more information about named entities, see
|
|
94
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend Developer Guide.
|
|
95
|
+
* </p>
|
|
93
96
|
*/
|
|
94
97
|
batchDetectEntities(args: BatchDetectEntitiesCommandInput, options?: __HttpHandlerOptions): Promise<BatchDetectEntitiesCommandOutput>;
|
|
95
98
|
batchDetectEntities(args: BatchDetectEntitiesCommandInput, cb: (err: any, data?: BatchDetectEntitiesCommandOutput) => void): void;
|
|
@@ -110,11 +113,21 @@ export declare class Comprehend extends ComprehendClient {
|
|
|
110
113
|
batchDetectSentiment(args: BatchDetectSentimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDetectSentimentCommandOutput) => void): void;
|
|
111
114
|
/**
|
|
112
115
|
* <p>Inspects the text of a batch of documents for the syntax and part of speech of the words
|
|
113
|
-
* in the document and returns information about them. For more information, see
|
|
116
|
+
* in the document and returns information about them. For more information, see
|
|
117
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer Guide.
|
|
118
|
+
* </p>
|
|
114
119
|
*/
|
|
115
120
|
batchDetectSyntax(args: BatchDetectSyntaxCommandInput, options?: __HttpHandlerOptions): Promise<BatchDetectSyntaxCommandOutput>;
|
|
116
121
|
batchDetectSyntax(args: BatchDetectSyntaxCommandInput, cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void): void;
|
|
117
122
|
batchDetectSyntax(args: BatchDetectSyntaxCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDetectSyntaxCommandOutput) => void): void;
|
|
123
|
+
/**
|
|
124
|
+
* <p>Inspects a batch of documents and returns a sentiment analysis
|
|
125
|
+
* for each entity identified in the documents.</p>
|
|
126
|
+
* <p>For more information about targeted sentiment, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html">Targeted sentiment</a>.</p>
|
|
127
|
+
*/
|
|
128
|
+
batchDetectTargetedSentiment(args: BatchDetectTargetedSentimentCommandInput, options?: __HttpHandlerOptions): Promise<BatchDetectTargetedSentimentCommandOutput>;
|
|
129
|
+
batchDetectTargetedSentiment(args: BatchDetectTargetedSentimentCommandInput, cb: (err: any, data?: BatchDetectTargetedSentimentCommandOutput) => void): void;
|
|
130
|
+
batchDetectTargetedSentiment(args: BatchDetectTargetedSentimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDetectTargetedSentimentCommandOutput) => void): void;
|
|
118
131
|
/**
|
|
119
132
|
* <p>Creates a new document classification request to analyze a single document in real-time,
|
|
120
133
|
* using a previously created and trained custom model and an endpoint.</p>
|
|
@@ -134,7 +147,9 @@ export declare class Comprehend extends ComprehendClient {
|
|
|
134
147
|
* <p>Creates a new document classifier that you can use to categorize documents. To create a
|
|
135
148
|
* classifier, you provide a set of training documents that labeled with the categories that you
|
|
136
149
|
* want to use. After the classifier is trained you can use it to categorize a set of labeled
|
|
137
|
-
* documents into the categories. For more information, see
|
|
150
|
+
* documents into the categories. For more information, see
|
|
151
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html">Document Classification</a> in the Comprehend Developer Guide.
|
|
152
|
+
* </p>
|
|
138
153
|
*/
|
|
139
154
|
createDocumentClassifier(args: CreateDocumentClassifierCommandInput, options?: __HttpHandlerOptions): Promise<CreateDocumentClassifierCommandOutput>;
|
|
140
155
|
createDocumentClassifier(args: CreateDocumentClassifierCommandInput, cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void): void;
|
|
@@ -292,7 +307,8 @@ export declare class Comprehend extends ComprehendClient {
|
|
|
292
307
|
detectDominantLanguage(args: DetectDominantLanguageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDominantLanguageCommandOutput) => void): void;
|
|
293
308
|
/**
|
|
294
309
|
* <p>Inspects text for named entities, and returns information about them. For more
|
|
295
|
-
* information, about named entities, see
|
|
310
|
+
* information, about named entities, see
|
|
311
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend Developer Guide.</p>
|
|
296
312
|
*/
|
|
297
313
|
detectEntities(args: DetectEntitiesCommandInput, options?: __HttpHandlerOptions): Promise<DetectEntitiesCommandOutput>;
|
|
298
314
|
detectEntities(args: DetectEntitiesCommandInput, cb: (err: any, data?: DetectEntitiesCommandOutput) => void): void;
|
|
@@ -319,11 +335,20 @@ export declare class Comprehend extends ComprehendClient {
|
|
|
319
335
|
detectSentiment(args: DetectSentimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectSentimentCommandOutput) => void): void;
|
|
320
336
|
/**
|
|
321
337
|
* <p>Inspects text for syntax and the part of speech of words in the document. For more
|
|
322
|
-
* information,
|
|
338
|
+
* information, see
|
|
339
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer Guide.
|
|
340
|
+
* </p>
|
|
323
341
|
*/
|
|
324
342
|
detectSyntax(args: DetectSyntaxCommandInput, options?: __HttpHandlerOptions): Promise<DetectSyntaxCommandOutput>;
|
|
325
343
|
detectSyntax(args: DetectSyntaxCommandInput, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
|
|
326
344
|
detectSyntax(args: DetectSyntaxCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
|
|
345
|
+
/**
|
|
346
|
+
* <p>Inspects the input text and returns a sentiment analysis for each entity identified in the text.</p>
|
|
347
|
+
* <p>For more information about targeted sentiment, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html">Targeted sentiment</a>.</p>
|
|
348
|
+
*/
|
|
349
|
+
detectTargetedSentiment(args: DetectTargetedSentimentCommandInput, options?: __HttpHandlerOptions): Promise<DetectTargetedSentimentCommandOutput>;
|
|
350
|
+
detectTargetedSentiment(args: DetectTargetedSentimentCommandInput, cb: (err: any, data?: DetectTargetedSentimentCommandOutput) => void): void;
|
|
351
|
+
detectTargetedSentiment(args: DetectTargetedSentimentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectTargetedSentimentCommandOutput) => void): void;
|
|
327
352
|
/**
|
|
328
353
|
* <p>Creates a new custom model that replicates a source custom model that you import. The
|
|
329
354
|
* source model can be in your AWS account or another one.</p>
|
|
@@ -11,6 +11,7 @@ import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } fro
|
|
|
11
11
|
import { BatchDetectKeyPhrasesCommandInput, BatchDetectKeyPhrasesCommandOutput } from "./commands/BatchDetectKeyPhrasesCommand";
|
|
12
12
|
import { BatchDetectSentimentCommandInput, BatchDetectSentimentCommandOutput } from "./commands/BatchDetectSentimentCommand";
|
|
13
13
|
import { BatchDetectSyntaxCommandInput, BatchDetectSyntaxCommandOutput } from "./commands/BatchDetectSyntaxCommand";
|
|
14
|
+
import { BatchDetectTargetedSentimentCommandInput, BatchDetectTargetedSentimentCommandOutput } from "./commands/BatchDetectTargetedSentimentCommand";
|
|
14
15
|
import { ClassifyDocumentCommandInput, ClassifyDocumentCommandOutput } from "./commands/ClassifyDocumentCommand";
|
|
15
16
|
import { ContainsPiiEntitiesCommandInput, ContainsPiiEntitiesCommandOutput } from "./commands/ContainsPiiEntitiesCommand";
|
|
16
17
|
import { CreateDocumentClassifierCommandInput, CreateDocumentClassifierCommandOutput } from "./commands/CreateDocumentClassifierCommand";
|
|
@@ -39,6 +40,7 @@ import { DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput } from "./c
|
|
|
39
40
|
import { DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput } from "./commands/DetectPiiEntitiesCommand";
|
|
40
41
|
import { DetectSentimentCommandInput, DetectSentimentCommandOutput } from "./commands/DetectSentimentCommand";
|
|
41
42
|
import { DetectSyntaxCommandInput, DetectSyntaxCommandOutput } from "./commands/DetectSyntaxCommand";
|
|
43
|
+
import { DetectTargetedSentimentCommandInput, DetectTargetedSentimentCommandOutput } from "./commands/DetectTargetedSentimentCommand";
|
|
42
44
|
import { ImportModelCommandInput, ImportModelCommandOutput } from "./commands/ImportModelCommand";
|
|
43
45
|
import { ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput } from "./commands/ListDocumentClassificationJobsCommand";
|
|
44
46
|
import { ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput } from "./commands/ListDocumentClassifiersCommand";
|
|
@@ -77,8 +79,8 @@ import { StopTrainingEntityRecognizerCommandInput, StopTrainingEntityRecognizerC
|
|
|
77
79
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
78
80
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
79
81
|
import { UpdateEndpointCommandInput, UpdateEndpointCommandOutput } from "./commands/UpdateEndpointCommand";
|
|
80
|
-
export declare type ServiceInputTypes = BatchDetectDominantLanguageCommandInput | BatchDetectEntitiesCommandInput | BatchDetectKeyPhrasesCommandInput | BatchDetectSentimentCommandInput | BatchDetectSyntaxCommandInput | ClassifyDocumentCommandInput | ContainsPiiEntitiesCommandInput | CreateDocumentClassifierCommandInput | CreateEndpointCommandInput | CreateEntityRecognizerCommandInput | DeleteDocumentClassifierCommandInput | DeleteEndpointCommandInput | DeleteEntityRecognizerCommandInput | DeleteResourcePolicyCommandInput | DescribeDocumentClassificationJobCommandInput | DescribeDocumentClassifierCommandInput | DescribeDominantLanguageDetectionJobCommandInput | DescribeEndpointCommandInput | DescribeEntitiesDetectionJobCommandInput | DescribeEntityRecognizerCommandInput | DescribeEventsDetectionJobCommandInput | DescribeKeyPhrasesDetectionJobCommandInput | DescribePiiEntitiesDetectionJobCommandInput | DescribeResourcePolicyCommandInput | DescribeSentimentDetectionJobCommandInput | DescribeTargetedSentimentDetectionJobCommandInput | DescribeTopicsDetectionJobCommandInput | DetectDominantLanguageCommandInput | DetectEntitiesCommandInput | DetectKeyPhrasesCommandInput | DetectPiiEntitiesCommandInput | DetectSentimentCommandInput | DetectSyntaxCommandInput | ImportModelCommandInput | ListDocumentClassificationJobsCommandInput | ListDocumentClassifierSummariesCommandInput | ListDocumentClassifiersCommandInput | ListDominantLanguageDetectionJobsCommandInput | ListEndpointsCommandInput | ListEntitiesDetectionJobsCommandInput | ListEntityRecognizerSummariesCommandInput | ListEntityRecognizersCommandInput | ListEventsDetectionJobsCommandInput | ListKeyPhrasesDetectionJobsCommandInput | ListPiiEntitiesDetectionJobsCommandInput | ListSentimentDetectionJobsCommandInput | ListTagsForResourceCommandInput | ListTargetedSentimentDetectionJobsCommandInput | ListTopicsDetectionJobsCommandInput | PutResourcePolicyCommandInput | StartDocumentClassificationJobCommandInput | StartDominantLanguageDetectionJobCommandInput | StartEntitiesDetectionJobCommandInput | StartEventsDetectionJobCommandInput | StartKeyPhrasesDetectionJobCommandInput | StartPiiEntitiesDetectionJobCommandInput | StartSentimentDetectionJobCommandInput | StartTargetedSentimentDetectionJobCommandInput | StartTopicsDetectionJobCommandInput | StopDominantLanguageDetectionJobCommandInput | StopEntitiesDetectionJobCommandInput | StopEventsDetectionJobCommandInput | StopKeyPhrasesDetectionJobCommandInput | StopPiiEntitiesDetectionJobCommandInput | StopSentimentDetectionJobCommandInput | StopTargetedSentimentDetectionJobCommandInput | StopTrainingDocumentClassifierCommandInput | StopTrainingEntityRecognizerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointCommandInput;
|
|
81
|
-
export declare type ServiceOutputTypes = BatchDetectDominantLanguageCommandOutput | BatchDetectEntitiesCommandOutput | BatchDetectKeyPhrasesCommandOutput | BatchDetectSentimentCommandOutput | BatchDetectSyntaxCommandOutput | ClassifyDocumentCommandOutput | ContainsPiiEntitiesCommandOutput | CreateDocumentClassifierCommandOutput | CreateEndpointCommandOutput | CreateEntityRecognizerCommandOutput | DeleteDocumentClassifierCommandOutput | DeleteEndpointCommandOutput | DeleteEntityRecognizerCommandOutput | DeleteResourcePolicyCommandOutput | DescribeDocumentClassificationJobCommandOutput | DescribeDocumentClassifierCommandOutput | DescribeDominantLanguageDetectionJobCommandOutput | DescribeEndpointCommandOutput | DescribeEntitiesDetectionJobCommandOutput | DescribeEntityRecognizerCommandOutput | DescribeEventsDetectionJobCommandOutput | DescribeKeyPhrasesDetectionJobCommandOutput | DescribePiiEntitiesDetectionJobCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSentimentDetectionJobCommandOutput | DescribeTargetedSentimentDetectionJobCommandOutput | DescribeTopicsDetectionJobCommandOutput | DetectDominantLanguageCommandOutput | DetectEntitiesCommandOutput | DetectKeyPhrasesCommandOutput | DetectPiiEntitiesCommandOutput | DetectSentimentCommandOutput | DetectSyntaxCommandOutput | ImportModelCommandOutput | ListDocumentClassificationJobsCommandOutput | ListDocumentClassifierSummariesCommandOutput | ListDocumentClassifiersCommandOutput | ListDominantLanguageDetectionJobsCommandOutput | ListEndpointsCommandOutput | ListEntitiesDetectionJobsCommandOutput | ListEntityRecognizerSummariesCommandOutput | ListEntityRecognizersCommandOutput | ListEventsDetectionJobsCommandOutput | ListKeyPhrasesDetectionJobsCommandOutput | ListPiiEntitiesDetectionJobsCommandOutput | ListSentimentDetectionJobsCommandOutput | ListTagsForResourceCommandOutput | ListTargetedSentimentDetectionJobsCommandOutput | ListTopicsDetectionJobsCommandOutput | PutResourcePolicyCommandOutput | StartDocumentClassificationJobCommandOutput | StartDominantLanguageDetectionJobCommandOutput | StartEntitiesDetectionJobCommandOutput | StartEventsDetectionJobCommandOutput | StartKeyPhrasesDetectionJobCommandOutput | StartPiiEntitiesDetectionJobCommandOutput | StartSentimentDetectionJobCommandOutput | StartTargetedSentimentDetectionJobCommandOutput | StartTopicsDetectionJobCommandOutput | StopDominantLanguageDetectionJobCommandOutput | StopEntitiesDetectionJobCommandOutput | StopEventsDetectionJobCommandOutput | StopKeyPhrasesDetectionJobCommandOutput | StopPiiEntitiesDetectionJobCommandOutput | StopSentimentDetectionJobCommandOutput | StopTargetedSentimentDetectionJobCommandOutput | StopTrainingDocumentClassifierCommandOutput | StopTrainingEntityRecognizerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointCommandOutput;
|
|
82
|
+
export declare type ServiceInputTypes = BatchDetectDominantLanguageCommandInput | BatchDetectEntitiesCommandInput | BatchDetectKeyPhrasesCommandInput | BatchDetectSentimentCommandInput | BatchDetectSyntaxCommandInput | BatchDetectTargetedSentimentCommandInput | ClassifyDocumentCommandInput | ContainsPiiEntitiesCommandInput | CreateDocumentClassifierCommandInput | CreateEndpointCommandInput | CreateEntityRecognizerCommandInput | DeleteDocumentClassifierCommandInput | DeleteEndpointCommandInput | DeleteEntityRecognizerCommandInput | DeleteResourcePolicyCommandInput | DescribeDocumentClassificationJobCommandInput | DescribeDocumentClassifierCommandInput | DescribeDominantLanguageDetectionJobCommandInput | DescribeEndpointCommandInput | DescribeEntitiesDetectionJobCommandInput | DescribeEntityRecognizerCommandInput | DescribeEventsDetectionJobCommandInput | DescribeKeyPhrasesDetectionJobCommandInput | DescribePiiEntitiesDetectionJobCommandInput | DescribeResourcePolicyCommandInput | DescribeSentimentDetectionJobCommandInput | DescribeTargetedSentimentDetectionJobCommandInput | DescribeTopicsDetectionJobCommandInput | DetectDominantLanguageCommandInput | DetectEntitiesCommandInput | DetectKeyPhrasesCommandInput | DetectPiiEntitiesCommandInput | DetectSentimentCommandInput | DetectSyntaxCommandInput | DetectTargetedSentimentCommandInput | ImportModelCommandInput | ListDocumentClassificationJobsCommandInput | ListDocumentClassifierSummariesCommandInput | ListDocumentClassifiersCommandInput | ListDominantLanguageDetectionJobsCommandInput | ListEndpointsCommandInput | ListEntitiesDetectionJobsCommandInput | ListEntityRecognizerSummariesCommandInput | ListEntityRecognizersCommandInput | ListEventsDetectionJobsCommandInput | ListKeyPhrasesDetectionJobsCommandInput | ListPiiEntitiesDetectionJobsCommandInput | ListSentimentDetectionJobsCommandInput | ListTagsForResourceCommandInput | ListTargetedSentimentDetectionJobsCommandInput | ListTopicsDetectionJobsCommandInput | PutResourcePolicyCommandInput | StartDocumentClassificationJobCommandInput | StartDominantLanguageDetectionJobCommandInput | StartEntitiesDetectionJobCommandInput | StartEventsDetectionJobCommandInput | StartKeyPhrasesDetectionJobCommandInput | StartPiiEntitiesDetectionJobCommandInput | StartSentimentDetectionJobCommandInput | StartTargetedSentimentDetectionJobCommandInput | StartTopicsDetectionJobCommandInput | StopDominantLanguageDetectionJobCommandInput | StopEntitiesDetectionJobCommandInput | StopEventsDetectionJobCommandInput | StopKeyPhrasesDetectionJobCommandInput | StopPiiEntitiesDetectionJobCommandInput | StopSentimentDetectionJobCommandInput | StopTargetedSentimentDetectionJobCommandInput | StopTrainingDocumentClassifierCommandInput | StopTrainingEntityRecognizerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointCommandInput;
|
|
83
|
+
export declare type ServiceOutputTypes = BatchDetectDominantLanguageCommandOutput | BatchDetectEntitiesCommandOutput | BatchDetectKeyPhrasesCommandOutput | BatchDetectSentimentCommandOutput | BatchDetectSyntaxCommandOutput | BatchDetectTargetedSentimentCommandOutput | ClassifyDocumentCommandOutput | ContainsPiiEntitiesCommandOutput | CreateDocumentClassifierCommandOutput | CreateEndpointCommandOutput | CreateEntityRecognizerCommandOutput | DeleteDocumentClassifierCommandOutput | DeleteEndpointCommandOutput | DeleteEntityRecognizerCommandOutput | DeleteResourcePolicyCommandOutput | DescribeDocumentClassificationJobCommandOutput | DescribeDocumentClassifierCommandOutput | DescribeDominantLanguageDetectionJobCommandOutput | DescribeEndpointCommandOutput | DescribeEntitiesDetectionJobCommandOutput | DescribeEntityRecognizerCommandOutput | DescribeEventsDetectionJobCommandOutput | DescribeKeyPhrasesDetectionJobCommandOutput | DescribePiiEntitiesDetectionJobCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSentimentDetectionJobCommandOutput | DescribeTargetedSentimentDetectionJobCommandOutput | DescribeTopicsDetectionJobCommandOutput | DetectDominantLanguageCommandOutput | DetectEntitiesCommandOutput | DetectKeyPhrasesCommandOutput | DetectPiiEntitiesCommandOutput | DetectSentimentCommandOutput | DetectSyntaxCommandOutput | DetectTargetedSentimentCommandOutput | ImportModelCommandOutput | ListDocumentClassificationJobsCommandOutput | ListDocumentClassifierSummariesCommandOutput | ListDocumentClassifiersCommandOutput | ListDominantLanguageDetectionJobsCommandOutput | ListEndpointsCommandOutput | ListEntitiesDetectionJobsCommandOutput | ListEntityRecognizerSummariesCommandOutput | ListEntityRecognizersCommandOutput | ListEventsDetectionJobsCommandOutput | ListKeyPhrasesDetectionJobsCommandOutput | ListPiiEntitiesDetectionJobsCommandOutput | ListSentimentDetectionJobsCommandOutput | ListTagsForResourceCommandOutput | ListTargetedSentimentDetectionJobsCommandOutput | ListTopicsDetectionJobsCommandOutput | PutResourcePolicyCommandOutput | StartDocumentClassificationJobCommandOutput | StartDominantLanguageDetectionJobCommandOutput | StartEntitiesDetectionJobCommandOutput | StartEventsDetectionJobCommandOutput | StartKeyPhrasesDetectionJobCommandOutput | StartPiiEntitiesDetectionJobCommandOutput | StartSentimentDetectionJobCommandOutput | StartTargetedSentimentDetectionJobCommandOutput | StartTopicsDetectionJobCommandOutput | StopDominantLanguageDetectionJobCommandOutput | StopEntitiesDetectionJobCommandOutput | StopEventsDetectionJobCommandOutput | StopKeyPhrasesDetectionJobCommandOutput | StopPiiEntitiesDetectionJobCommandOutput | StopSentimentDetectionJobCommandOutput | StopTargetedSentimentDetectionJobCommandOutput | StopTrainingDocumentClassifierCommandOutput | StopTrainingEntityRecognizerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointCommandOutput;
|
|
82
84
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
83
85
|
/**
|
|
84
86
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -8,8 +8,9 @@ export interface BatchDetectEntitiesCommandOutput extends BatchDetectEntitiesRes
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Inspects the text of a batch of documents for named entities and returns information
|
|
11
|
-
* about them. For more information about named entities, see
|
|
12
|
-
*
|
|
11
|
+
* about them. For more information about named entities, see
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend Developer Guide.
|
|
13
|
+
* </p>
|
|
13
14
|
* @example
|
|
14
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
16
|
* ```javascript
|
|
@@ -8,7 +8,9 @@ export interface BatchDetectSyntaxCommandOutput extends BatchDetectSyntaxRespons
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Inspects the text of a batch of documents for the syntax and part of speech of the words
|
|
11
|
-
* in the document and returns information about them. For more information, see
|
|
11
|
+
* in the document and returns information about them. For more information, see
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer Guide.
|
|
13
|
+
* </p>
|
|
12
14
|
* @example
|
|
13
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
16
|
* ```javascript
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
4
|
+
import { BatchDetectTargetedSentimentRequest, BatchDetectTargetedSentimentResponse } from "../models/models_0";
|
|
5
|
+
export interface BatchDetectTargetedSentimentCommandInput extends BatchDetectTargetedSentimentRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface BatchDetectTargetedSentimentCommandOutput extends BatchDetectTargetedSentimentResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Inspects a batch of documents and returns a sentiment analysis
|
|
11
|
+
* for each entity identified in the documents.</p>
|
|
12
|
+
* <p>For more information about targeted sentiment, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html">Targeted sentiment</a>.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { ComprehendClient, BatchDetectTargetedSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
17
|
+
* // const { ComprehendClient, BatchDetectTargetedSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
18
|
+
* const client = new ComprehendClient(config);
|
|
19
|
+
* const command = new BatchDetectTargetedSentimentCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link BatchDetectTargetedSentimentCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link BatchDetectTargetedSentimentCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class BatchDetectTargetedSentimentCommand extends $Command<BatchDetectTargetedSentimentCommandInput, BatchDetectTargetedSentimentCommandOutput, ComprehendClientResolvedConfig> {
|
|
29
|
+
readonly input: BatchDetectTargetedSentimentCommandInput;
|
|
30
|
+
constructor(input: BatchDetectTargetedSentimentCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchDetectTargetedSentimentCommandInput, BatchDetectTargetedSentimentCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -10,7 +10,9 @@ export interface CreateDocumentClassifierCommandOutput extends CreateDocumentCla
|
|
|
10
10
|
* <p>Creates a new document classifier that you can use to categorize documents. To create a
|
|
11
11
|
* classifier, you provide a set of training documents that labeled with the categories that you
|
|
12
12
|
* want to use. After the classifier is trained you can use it to categorize a set of labeled
|
|
13
|
-
* documents into the categories. For more information, see
|
|
13
|
+
* documents into the categories. For more information, see
|
|
14
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html">Document Classification</a> in the Comprehend Developer Guide.
|
|
15
|
+
* </p>
|
|
14
16
|
* @example
|
|
15
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
18
|
* ```javascript
|
|
@@ -8,7 +8,8 @@ export interface DetectEntitiesCommandOutput extends DetectEntitiesResponse, __M
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Inspects text for named entities, and returns information about them. For more
|
|
11
|
-
* information, about named entities, see
|
|
11
|
+
* information, about named entities, see
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html">Entities</a> in the Comprehend Developer Guide.</p>
|
|
12
13
|
* @example
|
|
13
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
15
|
* ```javascript
|
|
@@ -8,7 +8,9 @@ export interface DetectSyntaxCommandOutput extends DetectSyntaxResponse, __Metad
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Inspects text for syntax and the part of speech of words in the document. For more
|
|
11
|
-
* information,
|
|
11
|
+
* information, see
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-syntax.html">Syntax</a> in the Comprehend Developer Guide.
|
|
13
|
+
* </p>
|
|
12
14
|
* @example
|
|
13
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
16
|
* ```javascript
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
|
|
4
|
+
import { DetectTargetedSentimentRequest, DetectTargetedSentimentResponse } from "../models/models_0";
|
|
5
|
+
export interface DetectTargetedSentimentCommandInput extends DetectTargetedSentimentRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DetectTargetedSentimentCommandOutput extends DetectTargetedSentimentResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Inspects the input text and returns a sentiment analysis for each entity identified in the text.</p>
|
|
11
|
+
* <p>For more information about targeted sentiment, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html">Targeted sentiment</a>.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { ComprehendClient, DetectTargetedSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
+
* // const { ComprehendClient, DetectTargetedSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
+
* const client = new ComprehendClient(config);
|
|
18
|
+
* const command = new DetectTargetedSentimentCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DetectTargetedSentimentCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DetectTargetedSentimentCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DetectTargetedSentimentCommand extends $Command<DetectTargetedSentimentCommandInput, DetectTargetedSentimentCommandOutput, ComprehendClientResolvedConfig> {
|
|
28
|
+
readonly input: DetectTargetedSentimentCommandInput;
|
|
29
|
+
constructor(input: DetectTargetedSentimentCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectTargetedSentimentCommandInput, DetectTargetedSentimentCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|