You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ailanguage/lib/client.ts
+104-6Lines changed: 104 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -400,6 +400,89 @@ Limitations:
400
400
}
401
401
}
402
402
403
+
/**
404
+
* 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.
405
+
* <p>
406
+
Limitations:
407
+
* - A batch may have up to 100 records.
408
+
* - A record may be up to 5000 characters long.
409
+
* - The total of characters to process in a request can be up to 20,000 characters.
410
+
*
411
+
* This operation does not retry by default if the user has not defined a retry configuration.
412
+
* @param BatchDetectLanguagePiiEntitiesRequest
413
+
* @return BatchDetectLanguagePiiEntitiesResponse
414
+
* @throws OciError when an error occurs
415
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
* The API extracts aspect-based and sentence level sentiment in text records.
405
488
* <p>
@@ -1370,9 +1453,12 @@ Limitations:
1370
1453
}
1371
1454
1372
1455
/**
1373
-
* The API returns the detected language and a related confidence score (between 0 and 1).
1456
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1457
+
* We recommend you replace this API with the batch API, [BatchDetectDominantLanguage](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage).
1374
1458
* <p>
1375
-
[List of supported languages.](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
1459
+
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
1460
+
* <p>
1461
+
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
1376
1462
* <p>
1377
1463
Limitations:
1378
1464
* - A record may be up to 1000 characters long.
@@ -1456,7 +1542,10 @@ Limitations:
1456
1542
}
1457
1543
1458
1544
/**
1459
-
* The API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
1545
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1546
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageEntities](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities).
1547
+
* <p>
1548
+
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
1460
1549
* <p>
1461
1550
Limitations:
1462
1551
* - A text may be up to 1000 characters long.
@@ -1543,7 +1632,10 @@ Limitations:
1543
1632
}
1544
1633
1545
1634
/**
1546
-
* The 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.
1635
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1636
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageKeyPhrases](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases).
1637
+
* <p>
1638
+
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.
1547
1639
* <p>
1548
1640
Limitations:
1549
1641
* - A record may be up to 1000 characters long.
@@ -1627,7 +1719,10 @@ Limitations:
1627
1719
}
1628
1720
1629
1721
/**
1630
-
* The API extracts aspect-based in text records.
1722
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1723
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageSentiments](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments).
1724
+
* <p>
1725
+
The DetectLanguageSentiments API extracts aspect-based in text records.
1631
1726
* <p>
1632
1727
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
1633
1728
* <p>
@@ -1717,7 +1812,10 @@ Limitations:
1717
1812
}
1718
1813
1719
1814
/**
1720
-
* The API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
1815
+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1816
+
* We recommend you replace this API with the batch API, [BatchDetectLanguageTextClassification](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification).
1817
+
* <p>
1818
+
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.
1721
1819
* <p>
1722
1820
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+
* OpenAPI spec version: 20221001
8
+
*
9
+
*
10
+
* NOTE: This class is auto generated by OracleSDKGenerator.
11
+
* Do not edit the class manually.
12
+
*
13
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
14
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+
*/
16
+
17
+
import*asmodelfrom"../model";
18
+
importcommon= require("oci-common");
19
+
20
+
/**
21
+
* The documents details to detect personal identification information.
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
26
+
*/
27
+
"compartmentId"?: string;
28
+
/**
29
+
* List of documents to detect personal identification information.
30
+
*/
31
+
"documents": Array<model.TextDocument>;
32
+
/**
33
+
* Mask recognized PII entities with different modes.
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4
+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5
+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6
+
7
+
* OpenAPI spec version: 20221001
8
+
*
9
+
*
10
+
* NOTE: This class is auto generated by OracleSDKGenerator.
11
+
* Do not edit the class manually.
12
+
*
13
+
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
14
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
0 commit comments