oci-ailanguage 2.79.0 → 2.80.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/lib/client.d.ts +63 -55
- package/lib/client.js +63 -55
- package/lib/client.js.map +1 -1
- package/lib/model/batch-detect-dominant-language-details.d.ts +17 -0
- package/lib/model/batch-detect-dominant-language-details.js.map +1 -1
- package/lib/model/batch-detect-language-key-phrases-details.d.ts +4 -0
- package/lib/model/batch-detect-language-key-phrases-details.js.map +1 -1
- package/lib/model/batch-detect-language-pii-entities-details.d.ts +4 -0
- package/lib/model/batch-detect-language-pii-entities-details.js.map +1 -1
- package/lib/model/batch-detect-language-sentiments-details.d.ts +4 -0
- package/lib/model/batch-detect-language-sentiments-details.js.map +1 -1
- package/lib/model/batch-language-translation-details.d.ts +31 -24
- package/lib/model/batch-language-translation-details.js.map +1 -1
- package/lib/model/create-model-details.d.ts +1 -1
- package/lib/model/create-model-details.js.map +1 -1
- package/lib/model/endpoint-summary.d.ts +3 -1
- package/lib/model/endpoint.d.ts +3 -1
- package/lib/model/index.d.ts +0 -2
- package/lib/model/index.js +1 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/model-details.js +0 -4
- package/lib/model/model-details.js.map +1 -1
- package/lib/model/model-summary.d.ts +6 -4
- package/lib/model/model-summary.js.map +1 -1
- package/lib/model/model.d.ts +5 -3
- package/lib/model/model.js.map +1 -1
- package/lib/model/project-summary.d.ts +3 -1
- package/lib/model/project.d.ts +3 -1
- package/lib/model/translation-document-result.d.ts +2 -52
- package/lib/model/translation-document-result.js.map +1 -1
- 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 +1 -1
- 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-model-type-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/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/package.json +3 -3
- package/lib/model/pre-trained-phi-model-details.d.ts +0 -33
- package/lib/model/pre-trained-phi-model-details.js +0 -57
- package/lib/model/pre-trained-phi-model-details.js.map +0 -1
package/lib/client.js
CHANGED
|
@@ -60,7 +60,7 @@ var AIServiceLanguageApiKeys;
|
|
|
60
60
|
*/
|
|
61
61
|
class AIServiceLanguageClient {
|
|
62
62
|
constructor(params, clientConfiguration) {
|
|
63
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
63
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
64
64
|
this["_endpoint"] = "";
|
|
65
65
|
this["_defaultHeaders"] = {};
|
|
66
66
|
this._circuitBreaker = null;
|
|
@@ -207,7 +207,7 @@ class AIServiceLanguageClient {
|
|
|
207
207
|
* @param BatchDetectDominantLanguageRequest
|
|
208
208
|
* @return BatchDetectDominantLanguageResponse
|
|
209
209
|
* @throws OciError when an error occurs
|
|
210
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
210
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
|
|
211
211
|
*/
|
|
212
212
|
batchDetectDominantLanguage(batchDetectDominantLanguageRequest) {
|
|
213
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -272,7 +272,7 @@ class AIServiceLanguageClient {
|
|
|
272
272
|
* @param BatchDetectLanguageEntitiesRequest
|
|
273
273
|
* @return BatchDetectLanguageEntitiesResponse
|
|
274
274
|
* @throws OciError when an error occurs
|
|
275
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
|
|
276
276
|
*/
|
|
277
277
|
batchDetectLanguageEntities(batchDetectLanguageEntitiesRequest) {
|
|
278
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -335,7 +335,7 @@ class AIServiceLanguageClient {
|
|
|
335
335
|
* @param BatchDetectLanguageKeyPhrasesRequest
|
|
336
336
|
* @return BatchDetectLanguageKeyPhrasesResponse
|
|
337
337
|
* @throws OciError when an error occurs
|
|
338
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
338
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
|
|
339
339
|
*/
|
|
340
340
|
batchDetectLanguageKeyPhrases(batchDetectLanguageKeyPhrasesRequest) {
|
|
341
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -398,7 +398,7 @@ class AIServiceLanguageClient {
|
|
|
398
398
|
* @param BatchDetectLanguagePiiEntitiesRequest
|
|
399
399
|
* @return BatchDetectLanguagePiiEntitiesResponse
|
|
400
400
|
* @throws OciError when an error occurs
|
|
401
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
401
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
|
|
402
402
|
*/
|
|
403
403
|
batchDetectLanguagePiiEntities(batchDetectLanguagePiiEntitiesRequest) {
|
|
404
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -467,7 +467,7 @@ class AIServiceLanguageClient {
|
|
|
467
467
|
* @param BatchDetectLanguageSentimentsRequest
|
|
468
468
|
* @return BatchDetectLanguageSentimentsResponse
|
|
469
469
|
* @throws OciError when an error occurs
|
|
470
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
470
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
|
|
471
471
|
*/
|
|
472
472
|
batchDetectLanguageSentiments(batchDetectLanguageSentimentsRequest) {
|
|
473
473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -536,7 +536,7 @@ class AIServiceLanguageClient {
|
|
|
536
536
|
* @param BatchDetectLanguageTextClassificationRequest
|
|
537
537
|
* @return BatchDetectLanguageTextClassificationResponse
|
|
538
538
|
* @throws OciError when an error occurs
|
|
539
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
539
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
|
|
540
540
|
*/
|
|
541
541
|
batchDetectLanguageTextClassification(batchDetectLanguageTextClassificationRequest) {
|
|
542
542
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -588,18 +588,17 @@ class AIServiceLanguageClient {
|
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
/**
|
|
591
|
-
*
|
|
592
|
-
*
|
|
593
|
-
*
|
|
594
|
-
* -
|
|
595
|
-
* -
|
|
596
|
-
* - The total of characters to process in a request can be up to 20,000 characters.
|
|
591
|
+
* Translates a batch of text documents from source to target language.
|
|
592
|
+
* A batch can contain:
|
|
593
|
+
* - up to 100 records.
|
|
594
|
+
* - documents length less than 5000 characters.
|
|
595
|
+
* - 20,000 characters in total as a sum of all documents length.
|
|
597
596
|
*
|
|
598
597
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
599
598
|
* @param BatchLanguageTranslationRequest
|
|
600
599
|
* @return BatchLanguageTranslationResponse
|
|
601
600
|
* @throws OciError when an error occurs
|
|
602
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
601
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
|
|
603
602
|
*/
|
|
604
603
|
batchLanguageTranslation(batchLanguageTranslationRequest) {
|
|
605
604
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -656,7 +655,7 @@ class AIServiceLanguageClient {
|
|
|
656
655
|
* @param ChangeEndpointCompartmentRequest
|
|
657
656
|
* @return ChangeEndpointCompartmentResponse
|
|
658
657
|
* @throws OciError when an error occurs
|
|
659
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
658
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
|
|
660
659
|
*/
|
|
661
660
|
changeEndpointCompartment(changeEndpointCompartmentRequest) {
|
|
662
661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -713,7 +712,7 @@ class AIServiceLanguageClient {
|
|
|
713
712
|
* @param ChangeModelCompartmentRequest
|
|
714
713
|
* @return ChangeModelCompartmentResponse
|
|
715
714
|
* @throws OciError when an error occurs
|
|
716
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
715
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
717
716
|
*/
|
|
718
717
|
changeModelCompartment(changeModelCompartmentRequest) {
|
|
719
718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -770,7 +769,7 @@ class AIServiceLanguageClient {
|
|
|
770
769
|
* @param ChangeProjectCompartmentRequest
|
|
771
770
|
* @return ChangeProjectCompartmentResponse
|
|
772
771
|
* @throws OciError when an error occurs
|
|
773
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
772
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
774
773
|
*/
|
|
775
774
|
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
776
775
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -828,7 +827,7 @@ class AIServiceLanguageClient {
|
|
|
828
827
|
* @param CreateEndpointRequest
|
|
829
828
|
* @return CreateEndpointResponse
|
|
830
829
|
* @throws OciError when an error occurs
|
|
831
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
|
|
832
831
|
*/
|
|
833
832
|
createEndpoint(createEndpointRequest) {
|
|
834
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -902,7 +901,7 @@ class AIServiceLanguageClient {
|
|
|
902
901
|
* @param CreateModelRequest
|
|
903
902
|
* @return CreateModelResponse
|
|
904
903
|
* @throws OciError when an error occurs
|
|
905
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
904
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
906
905
|
*/
|
|
907
906
|
createModel(createModelRequest) {
|
|
908
907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -976,7 +975,7 @@ class AIServiceLanguageClient {
|
|
|
976
975
|
* @param CreateProjectRequest
|
|
977
976
|
* @return CreateProjectResponse
|
|
978
977
|
* @throws OciError when an error occurs
|
|
979
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
978
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
980
979
|
*/
|
|
981
980
|
createProject(createProjectRequest) {
|
|
982
981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1044,7 +1043,7 @@ class AIServiceLanguageClient {
|
|
|
1044
1043
|
* @param DeleteEndpointRequest
|
|
1045
1044
|
* @return DeleteEndpointResponse
|
|
1046
1045
|
* @throws OciError when an error occurs
|
|
1047
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1046
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
|
|
1048
1047
|
*/
|
|
1049
1048
|
deleteEndpoint(deleteEndpointRequest) {
|
|
1050
1049
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1104,7 +1103,7 @@ class AIServiceLanguageClient {
|
|
|
1104
1103
|
* @param DeleteModelRequest
|
|
1105
1104
|
* @return DeleteModelResponse
|
|
1106
1105
|
* @throws OciError when an error occurs
|
|
1107
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1106
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
1108
1107
|
*/
|
|
1109
1108
|
deleteModel(deleteModelRequest) {
|
|
1110
1109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1164,7 +1163,7 @@ class AIServiceLanguageClient {
|
|
|
1164
1163
|
* @param DeleteProjectRequest
|
|
1165
1164
|
* @return DeleteProjectResponse
|
|
1166
1165
|
* @throws OciError when an error occurs
|
|
1167
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1166
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
1168
1167
|
*/
|
|
1169
1168
|
deleteProject(deleteProjectRequest) {
|
|
1170
1169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1219,10 +1218,12 @@ class AIServiceLanguageClient {
|
|
|
1219
1218
|
});
|
|
1220
1219
|
}
|
|
1221
1220
|
/**
|
|
1222
|
-
* This API will be retired
|
|
1223
|
-
*
|
|
1221
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1222
|
+
* We recommend you replace this API with the batch API, [BatchDetectDominantLanguage](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage).
|
|
1224
1223
|
* <p>
|
|
1225
|
-
|
|
1224
|
+
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
|
|
1225
|
+
* <p>
|
|
1226
|
+
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
|
|
1226
1227
|
* <p>
|
|
1227
1228
|
Limitations:
|
|
1228
1229
|
* - A record may be up to 1000 characters long.
|
|
@@ -1231,7 +1232,7 @@ class AIServiceLanguageClient {
|
|
|
1231
1232
|
* @param DetectDominantLanguageRequest
|
|
1232
1233
|
* @return DetectDominantLanguageResponse
|
|
1233
1234
|
* @throws OciError when an error occurs
|
|
1234
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1235
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
|
|
1235
1236
|
*/
|
|
1236
1237
|
detectDominantLanguage(detectDominantLanguageRequest) {
|
|
1237
1238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1288,8 +1289,10 @@ class AIServiceLanguageClient {
|
|
|
1288
1289
|
});
|
|
1289
1290
|
}
|
|
1290
1291
|
/**
|
|
1291
|
-
* This API will be retired
|
|
1292
|
-
*
|
|
1292
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1293
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageEntities](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities).
|
|
1294
|
+
* <p>
|
|
1295
|
+
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
|
|
1293
1296
|
* <p>
|
|
1294
1297
|
Limitations:
|
|
1295
1298
|
* - A text may be up to 1000 characters long.
|
|
@@ -1298,7 +1301,7 @@ class AIServiceLanguageClient {
|
|
|
1298
1301
|
* @param DetectLanguageEntitiesRequest
|
|
1299
1302
|
* @return DetectLanguageEntitiesResponse
|
|
1300
1303
|
* @throws OciError when an error occurs
|
|
1301
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1304
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
|
|
1302
1305
|
*/
|
|
1303
1306
|
detectLanguageEntities(detectLanguageEntitiesRequest) {
|
|
1304
1307
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1358,17 +1361,18 @@ class AIServiceLanguageClient {
|
|
|
1358
1361
|
});
|
|
1359
1362
|
}
|
|
1360
1363
|
/**
|
|
1361
|
-
* This API will be retired
|
|
1362
|
-
*
|
|
1364
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1365
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageKeyPhrases](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases).
|
|
1363
1366
|
* <p>
|
|
1364
|
-
|
|
1367
|
+
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.
|
|
1368
|
+
* Limitations:
|
|
1365
1369
|
* - A record may be up to 1000 characters long.
|
|
1366
1370
|
*
|
|
1367
1371
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1368
1372
|
* @param DetectLanguageKeyPhrasesRequest
|
|
1369
1373
|
* @return DetectLanguageKeyPhrasesResponse
|
|
1370
1374
|
* @throws OciError when an error occurs
|
|
1371
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1375
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
|
|
1372
1376
|
*/
|
|
1373
1377
|
detectLanguageKeyPhrases(detectLanguageKeyPhrasesRequest) {
|
|
1374
1378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1425,8 +1429,10 @@ class AIServiceLanguageClient {
|
|
|
1425
1429
|
});
|
|
1426
1430
|
}
|
|
1427
1431
|
/**
|
|
1428
|
-
* This API will be retired
|
|
1429
|
-
*
|
|
1432
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1433
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageSentiments](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments).
|
|
1434
|
+
* <p>
|
|
1435
|
+
The DetectLanguageSentiments API extracts aspect-based in text records.
|
|
1430
1436
|
* <p>
|
|
1431
1437
|
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
|
|
1432
1438
|
* <p>
|
|
@@ -1441,7 +1447,7 @@ class AIServiceLanguageClient {
|
|
|
1441
1447
|
* @param DetectLanguageSentimentsRequest
|
|
1442
1448
|
* @return DetectLanguageSentimentsResponse
|
|
1443
1449
|
* @throws OciError when an error occurs
|
|
1444
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
|
|
1445
1451
|
*/
|
|
1446
1452
|
detectLanguageSentiments(detectLanguageSentimentsRequest) {
|
|
1447
1453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1498,8 +1504,10 @@ class AIServiceLanguageClient {
|
|
|
1498
1504
|
});
|
|
1499
1505
|
}
|
|
1500
1506
|
/**
|
|
1501
|
-
* This API will be retired
|
|
1502
|
-
*
|
|
1507
|
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
|
|
1508
|
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageTextClassification](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification).
|
|
1509
|
+
* <p>
|
|
1510
|
+
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.
|
|
1503
1511
|
* <p>
|
|
1504
1512
|
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
|
|
1505
1513
|
* <p>
|
|
@@ -1510,7 +1518,7 @@ class AIServiceLanguageClient {
|
|
|
1510
1518
|
* @param DetectLanguageTextClassificationRequest
|
|
1511
1519
|
* @return DetectLanguageTextClassificationResponse
|
|
1512
1520
|
* @throws OciError when an error occurs
|
|
1513
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1521
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
|
|
1514
1522
|
*/
|
|
1515
1523
|
detectLanguageTextClassification(detectLanguageTextClassificationRequest) {
|
|
1516
1524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1572,7 +1580,7 @@ class AIServiceLanguageClient {
|
|
|
1572
1580
|
* @param GetEndpointRequest
|
|
1573
1581
|
* @return GetEndpointResponse
|
|
1574
1582
|
* @throws OciError when an error occurs
|
|
1575
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1583
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
|
|
1576
1584
|
*/
|
|
1577
1585
|
getEndpoint(getEndpointRequest) {
|
|
1578
1586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1635,7 +1643,7 @@ class AIServiceLanguageClient {
|
|
|
1635
1643
|
* @param GetModelRequest
|
|
1636
1644
|
* @return GetModelResponse
|
|
1637
1645
|
* @throws OciError when an error occurs
|
|
1638
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1646
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1639
1647
|
*/
|
|
1640
1648
|
getModel(getModelRequest) {
|
|
1641
1649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1698,7 +1706,7 @@ class AIServiceLanguageClient {
|
|
|
1698
1706
|
* @param GetModelTypeRequest
|
|
1699
1707
|
* @return GetModelTypeResponse
|
|
1700
1708
|
* @throws OciError when an error occurs
|
|
1701
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1709
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetModelType.ts.html |here} to see how to use GetModelType API.
|
|
1702
1710
|
*/
|
|
1703
1711
|
getModelType(getModelTypeRequest) {
|
|
1704
1712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1756,7 +1764,7 @@ class AIServiceLanguageClient {
|
|
|
1756
1764
|
* @param GetProjectRequest
|
|
1757
1765
|
* @return GetProjectResponse
|
|
1758
1766
|
* @throws OciError when an error occurs
|
|
1759
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1767
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1760
1768
|
*/
|
|
1761
1769
|
getProject(getProjectRequest) {
|
|
1762
1770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1819,7 +1827,7 @@ class AIServiceLanguageClient {
|
|
|
1819
1827
|
* @param GetWorkRequestRequest
|
|
1820
1828
|
* @return GetWorkRequestResponse
|
|
1821
1829
|
* @throws OciError when an error occurs
|
|
1822
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1823
1831
|
*/
|
|
1824
1832
|
getWorkRequest(getWorkRequestRequest) {
|
|
1825
1833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1883,7 +1891,7 @@ class AIServiceLanguageClient {
|
|
|
1883
1891
|
* @param ListEndpointsRequest
|
|
1884
1892
|
* @return ListEndpointsResponse
|
|
1885
1893
|
* @throws OciError when an error occurs
|
|
1886
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1894
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
|
|
1887
1895
|
*/
|
|
1888
1896
|
listEndpoints(listEndpointsRequest) {
|
|
1889
1897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1955,7 +1963,7 @@ class AIServiceLanguageClient {
|
|
|
1955
1963
|
* @param ListEvaluationResultsRequest
|
|
1956
1964
|
* @return ListEvaluationResultsResponse
|
|
1957
1965
|
* @throws OciError when an error occurs
|
|
1958
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1966
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
|
|
1959
1967
|
*/
|
|
1960
1968
|
listEvaluationResults(listEvaluationResultsRequest) {
|
|
1961
1969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2022,7 +2030,7 @@ class AIServiceLanguageClient {
|
|
|
2022
2030
|
* @param ListModelsRequest
|
|
2023
2031
|
* @return ListModelsResponse
|
|
2024
2032
|
* @throws OciError when an error occurs
|
|
2025
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2033
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
|
|
2026
2034
|
*/
|
|
2027
2035
|
listModels(listModelsRequest) {
|
|
2028
2036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2094,7 +2102,7 @@ class AIServiceLanguageClient {
|
|
|
2094
2102
|
* @param ListProjectsRequest
|
|
2095
2103
|
* @return ListProjectsResponse
|
|
2096
2104
|
* @throws OciError when an error occurs
|
|
2097
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2105
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
2098
2106
|
*/
|
|
2099
2107
|
listProjects(listProjectsRequest) {
|
|
2100
2108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2165,7 +2173,7 @@ class AIServiceLanguageClient {
|
|
|
2165
2173
|
* @param ListWorkRequestErrorsRequest
|
|
2166
2174
|
* @return ListWorkRequestErrorsResponse
|
|
2167
2175
|
* @throws OciError when an error occurs
|
|
2168
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2176
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2169
2177
|
*/
|
|
2170
2178
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2171
2179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2234,7 +2242,7 @@ class AIServiceLanguageClient {
|
|
|
2234
2242
|
* @param ListWorkRequestLogsRequest
|
|
2235
2243
|
* @return ListWorkRequestLogsResponse
|
|
2236
2244
|
* @throws OciError when an error occurs
|
|
2237
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2245
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2238
2246
|
*/
|
|
2239
2247
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2240
2248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2303,7 +2311,7 @@ class AIServiceLanguageClient {
|
|
|
2303
2311
|
* @param ListWorkRequestsRequest
|
|
2304
2312
|
* @return ListWorkRequestsResponse
|
|
2305
2313
|
* @throws OciError when an error occurs
|
|
2306
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2314
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2307
2315
|
*/
|
|
2308
2316
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2309
2317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2372,7 +2380,7 @@ class AIServiceLanguageClient {
|
|
|
2372
2380
|
* @param UpdateEndpointRequest
|
|
2373
2381
|
* @return UpdateEndpointResponse
|
|
2374
2382
|
* @throws OciError when an error occurs
|
|
2375
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2383
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
|
|
2376
2384
|
*/
|
|
2377
2385
|
updateEndpoint(updateEndpointRequest) {
|
|
2378
2386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2433,7 +2441,7 @@ class AIServiceLanguageClient {
|
|
|
2433
2441
|
* @param UpdateModelRequest
|
|
2434
2442
|
* @return UpdateModelResponse
|
|
2435
2443
|
* @throws OciError when an error occurs
|
|
2436
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2444
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
2437
2445
|
*/
|
|
2438
2446
|
updateModel(updateModelRequest) {
|
|
2439
2447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2494,7 +2502,7 @@ class AIServiceLanguageClient {
|
|
|
2494
2502
|
* @param UpdateProjectRequest
|
|
2495
2503
|
* @return UpdateProjectResponse
|
|
2496
2504
|
* @throws OciError when an error occurs
|
|
2497
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2505
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
2498
2506
|
*/
|
|
2499
2507
|
updateProject(updateProjectRequest) {
|
|
2500
2508
|
return __awaiter(this, void 0, void 0, function* () {
|