oci-ailanguage 2.50.2 → 2.50.4
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/lib/client.d.ts +70 -40
- package/lib/client.js +118 -40
- package/lib/client.js.map +1 -1
- package/lib/model/batch-detect-language-pii-entities-details.d.ts +39 -0
- package/lib/model/batch-detect-language-pii-entities-details.js +71 -0
- package/lib/model/batch-detect-language-pii-entities-details.js.map +1 -0
- package/lib/model/batch-detect-language-pii-entities-result.d.ts +33 -0
- package/lib/model/batch-detect-language-pii-entities-result.js +74 -0
- package/lib/model/batch-detect-language-pii-entities-result.js.map +1 -0
- package/lib/model/index.d.ts +16 -0
- package/lib/model/index.js +19 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/pii-entity-document-result.d.ts +41 -0
- package/lib/model/pii-entity-document-result.js +64 -0
- package/lib/model/pii-entity-document-result.js.map +1 -0
- package/lib/model/pii-entity-mask.d.ts +42 -0
- package/lib/model/pii-entity-mask.js +55 -0
- package/lib/model/pii-entity-mask.js.map +1 -0
- package/lib/model/pii-entity-masking.d.ts +25 -0
- package/lib/model/pii-entity-masking.js +79 -0
- package/lib/model/pii-entity-masking.js.map +1 -0
- package/lib/model/pii-entity-remove.d.ts +27 -0
- package/lib/model/pii-entity-remove.js +55 -0
- package/lib/model/pii-entity-remove.js.map +1 -0
- package/lib/model/pii-entity-replace.d.ts +31 -0
- package/lib/model/pii-entity-replace.js +55 -0
- package/lib/model/pii-entity-replace.js.map +1 -0
- package/lib/model/pii-entity.d.ts +44 -0
- package/lib/model/pii-entity.js +32 -0
- package/lib/model/pii-entity.js.map +1 -0
- package/lib/request/batch-detect-dominant-language-request.d.ts +1 -1
- package/lib/request/batch-detect-language-entities-request.d.ts +1 -1
- package/lib/request/batch-detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/batch-detect-language-pii-entities-request.d.ts +28 -0
- package/lib/request/batch-detect-language-pii-entities-request.js +15 -0
- package/lib/request/batch-detect-language-pii-entities-request.js.map +1 -0
- package/lib/request/batch-detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/batch-detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/batch-language-translation-request.d.ts +1 -1
- package/lib/request/change-endpoint-compartment-request.d.ts +1 -1
- package/lib/request/change-model-compartment-request.d.ts +1 -1
- package/lib/request/change-project-compartment-request.d.ts +1 -1
- package/lib/request/create-endpoint-request.d.ts +1 -1
- package/lib/request/create-model-request.d.ts +1 -1
- package/lib/request/create-project-request.d.ts +1 -1
- package/lib/request/delete-endpoint-request.d.ts +1 -1
- package/lib/request/delete-model-request.d.ts +1 -1
- package/lib/request/delete-project-request.d.ts +1 -1
- package/lib/request/detect-dominant-language-request.d.ts +1 -1
- package/lib/request/detect-language-entities-request.d.ts +1 -1
- package/lib/request/detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/get-endpoint-request.d.ts +1 -1
- package/lib/request/get-model-request.d.ts +1 -1
- package/lib/request/get-project-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-endpoints-request.d.ts +1 -1
- package/lib/request/list-evaluation-results-request.d.ts +1 -1
- package/lib/request/list-models-request.d.ts +1 -1
- package/lib/request/list-projects-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-endpoint-request.d.ts +1 -1
- package/lib/request/update-model-request.d.ts +1 -1
- package/lib/request/update-project-request.d.ts +1 -1
- package/lib/response/batch-detect-language-pii-entities-response.d.ts +25 -0
- package/lib/response/batch-detect-language-pii-entities-response.js +15 -0
- package/lib/response/batch-detect-language-pii-entities-response.js.map +1 -0
- package/lib/response/detect-dominant-language-response.d.ts +1 -1
- package/lib/response/detect-language-entities-response.d.ts +1 -1
- package/lib/response/detect-language-key-phrases-response.d.ts +1 -1
- package/lib/response/detect-language-sentiments-response.d.ts +1 -1
- package/lib/response/detect-language-text-classification-response.d.ts +1 -1
- package/lib/response/index.d.ts +2 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -167,7 +167,7 @@ class AIServiceLanguageClient {
|
|
|
167
167
|
* @param BatchDetectDominantLanguageRequest
|
|
168
168
|
* @return BatchDetectDominantLanguageResponse
|
|
169
169
|
* @throws OciError when an error occurs
|
|
170
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
170
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
|
|
171
171
|
*/
|
|
172
172
|
batchDetectDominantLanguage(batchDetectDominantLanguageRequest) {
|
|
173
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -232,7 +232,7 @@ class AIServiceLanguageClient {
|
|
|
232
232
|
* @param BatchDetectLanguageEntitiesRequest
|
|
233
233
|
* @return BatchDetectLanguageEntitiesResponse
|
|
234
234
|
* @throws OciError when an error occurs
|
|
235
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
235
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
|
|
236
236
|
*/
|
|
237
237
|
batchDetectLanguageEntities(batchDetectLanguageEntitiesRequest) {
|
|
238
238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -295,7 +295,7 @@ class AIServiceLanguageClient {
|
|
|
295
295
|
* @param BatchDetectLanguageKeyPhrasesRequest
|
|
296
296
|
* @return BatchDetectLanguageKeyPhrasesResponse
|
|
297
297
|
* @throws OciError when an error occurs
|
|
298
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
298
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
|
|
299
299
|
*/
|
|
300
300
|
batchDetectLanguageKeyPhrases(batchDetectLanguageKeyPhrasesRequest) {
|
|
301
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -346,6 +346,69 @@ class AIServiceLanguageClient {
|
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* The API extracts pii entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records.
|
|
351
|
+
* <p>
|
|
352
|
+
Limitations:
|
|
353
|
+
* - A batch may have up to 100 records.
|
|
354
|
+
* - A record may be up to 5000 characters long.
|
|
355
|
+
* - The total of characters to process in a request can be up to 20,000 characters.
|
|
356
|
+
*
|
|
357
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
358
|
+
* @param BatchDetectLanguagePiiEntitiesRequest
|
|
359
|
+
* @return BatchDetectLanguagePiiEntitiesResponse
|
|
360
|
+
* @throws OciError when an error occurs
|
|
361
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
|
|
362
|
+
*/
|
|
363
|
+
batchDetectLanguagePiiEntities(batchDetectLanguagePiiEntitiesRequest) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
if (this.logger)
|
|
366
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#batchDetectLanguagePiiEntities.");
|
|
367
|
+
const operationName = "batchDetectLanguagePiiEntities";
|
|
368
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguagePiiEntities/BatchDetectLanguagePiiEntities";
|
|
369
|
+
const pathParams = {};
|
|
370
|
+
const queryParams = {};
|
|
371
|
+
let headerParams = {
|
|
372
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
373
|
+
"opc-request-id": batchDetectLanguagePiiEntitiesRequest.opcRequestId
|
|
374
|
+
};
|
|
375
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
376
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDetectLanguagePiiEntitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
377
|
+
if (this.logger)
|
|
378
|
+
retrier.logger = this.logger;
|
|
379
|
+
const request = yield oci_common_1.composeRequest({
|
|
380
|
+
baseEndpoint: this._endpoint,
|
|
381
|
+
defaultHeaders: this._defaultHeaders,
|
|
382
|
+
path: "/actions/batchDetectLanguagePiiEntities",
|
|
383
|
+
method: "POST",
|
|
384
|
+
bodyContent: common.ObjectSerializer.serialize(batchDetectLanguagePiiEntitiesRequest.batchDetectLanguagePiiEntitiesDetails, "BatchDetectLanguagePiiEntitiesDetails", model.BatchDetectLanguagePiiEntitiesDetails.getJsonObj),
|
|
385
|
+
pathParams: pathParams,
|
|
386
|
+
headerParams: headerParams,
|
|
387
|
+
queryParams: queryParams
|
|
388
|
+
});
|
|
389
|
+
try {
|
|
390
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
391
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
392
|
+
responseObject: {},
|
|
393
|
+
body: yield response.json(),
|
|
394
|
+
bodyKey: "batchDetectLanguagePiiEntitiesResult",
|
|
395
|
+
bodyModel: model.BatchDetectLanguagePiiEntitiesResult,
|
|
396
|
+
type: "model.BatchDetectLanguagePiiEntitiesResult",
|
|
397
|
+
responseHeaders: [
|
|
398
|
+
{
|
|
399
|
+
value: response.headers.get("opc-request-id"),
|
|
400
|
+
key: "opcRequestId",
|
|
401
|
+
dataType: "string"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
});
|
|
405
|
+
return sdkResponse;
|
|
406
|
+
}
|
|
407
|
+
catch (err) {
|
|
408
|
+
throw err;
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
}
|
|
349
412
|
/**
|
|
350
413
|
* The API extracts aspect-based and sentence level sentiment in text records.
|
|
351
414
|
* <p>
|
|
@@ -364,7 +427,7 @@ class AIServiceLanguageClient {
|
|
|
364
427
|
* @param BatchDetectLanguageSentimentsRequest
|
|
365
428
|
* @return BatchDetectLanguageSentimentsResponse
|
|
366
429
|
* @throws OciError when an error occurs
|
|
367
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
430
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
|
|
368
431
|
*/
|
|
369
432
|
batchDetectLanguageSentiments(batchDetectLanguageSentimentsRequest) {
|
|
370
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -433,7 +496,7 @@ class AIServiceLanguageClient {
|
|
|
433
496
|
* @param BatchDetectLanguageTextClassificationRequest
|
|
434
497
|
* @return BatchDetectLanguageTextClassificationResponse
|
|
435
498
|
* @throws OciError when an error occurs
|
|
436
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
499
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
|
|
437
500
|
*/
|
|
438
501
|
batchDetectLanguageTextClassification(batchDetectLanguageTextClassificationRequest) {
|
|
439
502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -496,7 +559,7 @@ class AIServiceLanguageClient {
|
|
|
496
559
|
* @param BatchLanguageTranslationRequest
|
|
497
560
|
* @return BatchLanguageTranslationResponse
|
|
498
561
|
* @throws OciError when an error occurs
|
|
499
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
562
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
|
|
500
563
|
*/
|
|
501
564
|
batchLanguageTranslation(batchLanguageTranslationRequest) {
|
|
502
565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -553,7 +616,7 @@ class AIServiceLanguageClient {
|
|
|
553
616
|
* @param ChangeEndpointCompartmentRequest
|
|
554
617
|
* @return ChangeEndpointCompartmentResponse
|
|
555
618
|
* @throws OciError when an error occurs
|
|
556
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
619
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
|
|
557
620
|
*/
|
|
558
621
|
changeEndpointCompartment(changeEndpointCompartmentRequest) {
|
|
559
622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -610,7 +673,7 @@ class AIServiceLanguageClient {
|
|
|
610
673
|
* @param ChangeModelCompartmentRequest
|
|
611
674
|
* @return ChangeModelCompartmentResponse
|
|
612
675
|
* @throws OciError when an error occurs
|
|
613
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
676
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
614
677
|
*/
|
|
615
678
|
changeModelCompartment(changeModelCompartmentRequest) {
|
|
616
679
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -667,7 +730,7 @@ class AIServiceLanguageClient {
|
|
|
667
730
|
* @param ChangeProjectCompartmentRequest
|
|
668
731
|
* @return ChangeProjectCompartmentResponse
|
|
669
732
|
* @throws OciError when an error occurs
|
|
670
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
733
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
671
734
|
*/
|
|
672
735
|
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
673
736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -725,7 +788,7 @@ class AIServiceLanguageClient {
|
|
|
725
788
|
* @param CreateEndpointRequest
|
|
726
789
|
* @return CreateEndpointResponse
|
|
727
790
|
* @throws OciError when an error occurs
|
|
728
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
791
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
|
|
729
792
|
*/
|
|
730
793
|
createEndpoint(createEndpointRequest) {
|
|
731
794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -799,7 +862,7 @@ class AIServiceLanguageClient {
|
|
|
799
862
|
* @param CreateModelRequest
|
|
800
863
|
* @return CreateModelResponse
|
|
801
864
|
* @throws OciError when an error occurs
|
|
802
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
865
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
803
866
|
*/
|
|
804
867
|
createModel(createModelRequest) {
|
|
805
868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -873,7 +936,7 @@ class AIServiceLanguageClient {
|
|
|
873
936
|
* @param CreateProjectRequest
|
|
874
937
|
* @return CreateProjectResponse
|
|
875
938
|
* @throws OciError when an error occurs
|
|
876
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
939
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
877
940
|
*/
|
|
878
941
|
createProject(createProjectRequest) {
|
|
879
942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -941,7 +1004,7 @@ class AIServiceLanguageClient {
|
|
|
941
1004
|
* @param DeleteEndpointRequest
|
|
942
1005
|
* @return DeleteEndpointResponse
|
|
943
1006
|
* @throws OciError when an error occurs
|
|
944
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1007
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
|
|
945
1008
|
*/
|
|
946
1009
|
deleteEndpoint(deleteEndpointRequest) {
|
|
947
1010
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1001,7 +1064,7 @@ class AIServiceLanguageClient {
|
|
|
1001
1064
|
* @param DeleteModelRequest
|
|
1002
1065
|
* @return DeleteModelResponse
|
|
1003
1066
|
* @throws OciError when an error occurs
|
|
1004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1067
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
1005
1068
|
*/
|
|
1006
1069
|
deleteModel(deleteModelRequest) {
|
|
1007
1070
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1061,7 +1124,7 @@ class AIServiceLanguageClient {
|
|
|
1061
1124
|
* @param DeleteProjectRequest
|
|
1062
1125
|
* @return DeleteProjectResponse
|
|
1063
1126
|
* @throws OciError when an error occurs
|
|
1064
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1127
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
1065
1128
|
*/
|
|
1066
1129
|
deleteProject(deleteProjectRequest) {
|
|
1067
1130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1116,9 +1179,12 @@ class AIServiceLanguageClient {
|
|
|
1116
1179
|
});
|
|
1117
1180
|
}
|
|
1118
1181
|
/**
|
|
1119
|
-
*
|
|
1182
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1183
|
+
* We recommend you replace this API with the batch API, [BatchDetectDominantLanguage](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage).
|
|
1120
1184
|
* <p>
|
|
1121
|
-
|
|
1185
|
+
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
|
|
1186
|
+
* <p>
|
|
1187
|
+
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
|
|
1122
1188
|
* <p>
|
|
1123
1189
|
Limitations:
|
|
1124
1190
|
* - A record may be up to 1000 characters long.
|
|
@@ -1127,7 +1193,7 @@ class AIServiceLanguageClient {
|
|
|
1127
1193
|
* @param DetectDominantLanguageRequest
|
|
1128
1194
|
* @return DetectDominantLanguageResponse
|
|
1129
1195
|
* @throws OciError when an error occurs
|
|
1130
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1196
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
|
|
1131
1197
|
*/
|
|
1132
1198
|
detectDominantLanguage(detectDominantLanguageRequest) {
|
|
1133
1199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1184,7 +1250,10 @@ class AIServiceLanguageClient {
|
|
|
1184
1250
|
});
|
|
1185
1251
|
}
|
|
1186
1252
|
/**
|
|
1187
|
-
*
|
|
1253
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1254
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageEntities](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities).
|
|
1255
|
+
* <p>
|
|
1256
|
+
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
|
|
1188
1257
|
* <p>
|
|
1189
1258
|
Limitations:
|
|
1190
1259
|
* - A text may be up to 1000 characters long.
|
|
@@ -1193,7 +1262,7 @@ class AIServiceLanguageClient {
|
|
|
1193
1262
|
* @param DetectLanguageEntitiesRequest
|
|
1194
1263
|
* @return DetectLanguageEntitiesResponse
|
|
1195
1264
|
* @throws OciError when an error occurs
|
|
1196
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1265
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
|
|
1197
1266
|
*/
|
|
1198
1267
|
detectLanguageEntities(detectLanguageEntitiesRequest) {
|
|
1199
1268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1253,7 +1322,10 @@ class AIServiceLanguageClient {
|
|
|
1253
1322
|
});
|
|
1254
1323
|
}
|
|
1255
1324
|
/**
|
|
1256
|
-
*
|
|
1325
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1326
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageKeyPhrases](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases).
|
|
1327
|
+
* <p>
|
|
1328
|
+
The DetectLanguageKeyPhrases API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text.
|
|
1257
1329
|
* <p>
|
|
1258
1330
|
Limitations:
|
|
1259
1331
|
* - A record may be up to 1000 characters long.
|
|
@@ -1262,7 +1334,7 @@ class AIServiceLanguageClient {
|
|
|
1262
1334
|
* @param DetectLanguageKeyPhrasesRequest
|
|
1263
1335
|
* @return DetectLanguageKeyPhrasesResponse
|
|
1264
1336
|
* @throws OciError when an error occurs
|
|
1265
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1337
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
|
|
1266
1338
|
*/
|
|
1267
1339
|
detectLanguageKeyPhrases(detectLanguageKeyPhrasesRequest) {
|
|
1268
1340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1319,7 +1391,10 @@ class AIServiceLanguageClient {
|
|
|
1319
1391
|
});
|
|
1320
1392
|
}
|
|
1321
1393
|
/**
|
|
1322
|
-
*
|
|
1394
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1395
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageSentiments](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments).
|
|
1396
|
+
* <p>
|
|
1397
|
+
The DetectLanguageSentiments API extracts aspect-based in text records.
|
|
1323
1398
|
* <p>
|
|
1324
1399
|
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
|
|
1325
1400
|
* <p>
|
|
@@ -1334,7 +1409,7 @@ class AIServiceLanguageClient {
|
|
|
1334
1409
|
* @param DetectLanguageSentimentsRequest
|
|
1335
1410
|
* @return DetectLanguageSentimentsResponse
|
|
1336
1411
|
* @throws OciError when an error occurs
|
|
1337
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1412
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
|
|
1338
1413
|
*/
|
|
1339
1414
|
detectLanguageSentiments(detectLanguageSentimentsRequest) {
|
|
1340
1415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1391,7 +1466,10 @@ class AIServiceLanguageClient {
|
|
|
1391
1466
|
});
|
|
1392
1467
|
}
|
|
1393
1468
|
/**
|
|
1394
|
-
*
|
|
1469
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1470
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageTextClassification](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification).
|
|
1471
|
+
* <p>
|
|
1472
|
+
The DetectLanguageTextClassification API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
|
|
1395
1473
|
* <p>
|
|
1396
1474
|
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
|
|
1397
1475
|
* <p>
|
|
@@ -1402,7 +1480,7 @@ class AIServiceLanguageClient {
|
|
|
1402
1480
|
* @param DetectLanguageTextClassificationRequest
|
|
1403
1481
|
* @return DetectLanguageTextClassificationResponse
|
|
1404
1482
|
* @throws OciError when an error occurs
|
|
1405
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1483
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
|
|
1406
1484
|
*/
|
|
1407
1485
|
detectLanguageTextClassification(detectLanguageTextClassificationRequest) {
|
|
1408
1486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1464,7 +1542,7 @@ class AIServiceLanguageClient {
|
|
|
1464
1542
|
* @param GetEndpointRequest
|
|
1465
1543
|
* @return GetEndpointResponse
|
|
1466
1544
|
* @throws OciError when an error occurs
|
|
1467
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1545
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
|
|
1468
1546
|
*/
|
|
1469
1547
|
getEndpoint(getEndpointRequest) {
|
|
1470
1548
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1527,7 +1605,7 @@ class AIServiceLanguageClient {
|
|
|
1527
1605
|
* @param GetModelRequest
|
|
1528
1606
|
* @return GetModelResponse
|
|
1529
1607
|
* @throws OciError when an error occurs
|
|
1530
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1608
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1531
1609
|
*/
|
|
1532
1610
|
getModel(getModelRequest) {
|
|
1533
1611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1590,7 +1668,7 @@ class AIServiceLanguageClient {
|
|
|
1590
1668
|
* @param GetProjectRequest
|
|
1591
1669
|
* @return GetProjectResponse
|
|
1592
1670
|
* @throws OciError when an error occurs
|
|
1593
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1671
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1594
1672
|
*/
|
|
1595
1673
|
getProject(getProjectRequest) {
|
|
1596
1674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1653,7 +1731,7 @@ class AIServiceLanguageClient {
|
|
|
1653
1731
|
* @param GetWorkRequestRequest
|
|
1654
1732
|
* @return GetWorkRequestResponse
|
|
1655
1733
|
* @throws OciError when an error occurs
|
|
1656
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1734
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1657
1735
|
*/
|
|
1658
1736
|
getWorkRequest(getWorkRequestRequest) {
|
|
1659
1737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1717,7 +1795,7 @@ class AIServiceLanguageClient {
|
|
|
1717
1795
|
* @param ListEndpointsRequest
|
|
1718
1796
|
* @return ListEndpointsResponse
|
|
1719
1797
|
* @throws OciError when an error occurs
|
|
1720
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1798
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
|
|
1721
1799
|
*/
|
|
1722
1800
|
listEndpoints(listEndpointsRequest) {
|
|
1723
1801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1789,7 +1867,7 @@ class AIServiceLanguageClient {
|
|
|
1789
1867
|
* @param ListEvaluationResultsRequest
|
|
1790
1868
|
* @return ListEvaluationResultsResponse
|
|
1791
1869
|
* @throws OciError when an error occurs
|
|
1792
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1870
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
|
|
1793
1871
|
*/
|
|
1794
1872
|
listEvaluationResults(listEvaluationResultsRequest) {
|
|
1795
1873
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1856,7 +1934,7 @@ class AIServiceLanguageClient {
|
|
|
1856
1934
|
* @param ListModelsRequest
|
|
1857
1935
|
* @return ListModelsResponse
|
|
1858
1936
|
* @throws OciError when an error occurs
|
|
1859
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
1937
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1860
1938
|
*/
|
|
1861
1939
|
listModels(listModelsRequest) {
|
|
1862
1940
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1928,7 +2006,7 @@ class AIServiceLanguageClient {
|
|
|
1928
2006
|
* @param ListProjectsRequest
|
|
1929
2007
|
* @return ListProjectsResponse
|
|
1930
2008
|
* @throws OciError when an error occurs
|
|
1931
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2009
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
1932
2010
|
*/
|
|
1933
2011
|
listProjects(listProjectsRequest) {
|
|
1934
2012
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1999,7 +2077,7 @@ class AIServiceLanguageClient {
|
|
|
1999
2077
|
* @param ListWorkRequestErrorsRequest
|
|
2000
2078
|
* @return ListWorkRequestErrorsResponse
|
|
2001
2079
|
* @throws OciError when an error occurs
|
|
2002
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2080
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2003
2081
|
*/
|
|
2004
2082
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2005
2083
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2068,7 +2146,7 @@ class AIServiceLanguageClient {
|
|
|
2068
2146
|
* @param ListWorkRequestLogsRequest
|
|
2069
2147
|
* @return ListWorkRequestLogsResponse
|
|
2070
2148
|
* @throws OciError when an error occurs
|
|
2071
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2149
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2072
2150
|
*/
|
|
2073
2151
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2074
2152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2137,7 +2215,7 @@ class AIServiceLanguageClient {
|
|
|
2137
2215
|
* @param ListWorkRequestsRequest
|
|
2138
2216
|
* @return ListWorkRequestsResponse
|
|
2139
2217
|
* @throws OciError when an error occurs
|
|
2140
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2218
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2141
2219
|
*/
|
|
2142
2220
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2143
2221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2206,7 +2284,7 @@ class AIServiceLanguageClient {
|
|
|
2206
2284
|
* @param UpdateEndpointRequest
|
|
2207
2285
|
* @return UpdateEndpointResponse
|
|
2208
2286
|
* @throws OciError when an error occurs
|
|
2209
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2287
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
|
|
2210
2288
|
*/
|
|
2211
2289
|
updateEndpoint(updateEndpointRequest) {
|
|
2212
2290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2267,7 +2345,7 @@ class AIServiceLanguageClient {
|
|
|
2267
2345
|
* @param UpdateModelRequest
|
|
2268
2346
|
* @return UpdateModelResponse
|
|
2269
2347
|
* @throws OciError when an error occurs
|
|
2270
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2348
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
2271
2349
|
*/
|
|
2272
2350
|
updateModel(updateModelRequest) {
|
|
2273
2351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2328,7 +2406,7 @@ class AIServiceLanguageClient {
|
|
|
2328
2406
|
* @param UpdateProjectRequest
|
|
2329
2407
|
* @return UpdateProjectResponse
|
|
2330
2408
|
* @throws OciError when an error occurs
|
|
2331
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.
|
|
2409
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.50.4/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
2332
2410
|
*/
|
|
2333
2411
|
updateProject(updateProjectRequest) {
|
|
2334
2412
|
return __awaiter(this, void 0, void 0, function* () {
|