@azure/ai-language-text 1.1.0-alpha.20241204.2 → 1.1.0-alpha.20241205.3
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/dist/browser/azureKeyCredentialPolicy.d.ts +9 -0
- package/dist/browser/azureKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/browser/constants.d.ts +14 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/dist/browser/generated/generatedClient.d.ts +33 -0
- package/dist/browser/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/generatedClient.js +3 -3
- package/dist/browser/generated/generatedClient.js.map +1 -0
- package/dist/browser/generated/index.d.ts +4 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +11 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/models/index.d.ts +2034 -0
- package/dist/browser/generated/models/index.d.ts.map +1 -0
- package/dist/browser/generated/models/mappers.d.ts +171 -0
- package/dist/browser/generated/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/models/parameters.d.ts +12 -0
- package/dist/browser/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/models/parameters.js.map +1 -1
- package/dist/browser/generated/operations/analyzeText.d.ts +27 -0
- package/dist/browser/generated/operations/analyzeText.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/operations/analyzeText.js +2 -2
- package/dist/browser/generated/operations/analyzeText.js.map +1 -0
- package/dist/browser/generated/operations/index.d.ts +2 -0
- package/dist/browser/generated/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated → dist/browser/generated/operations}/index.js +1 -3
- package/dist/browser/generated/operations/index.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/analyzeText.d.ts +19 -0
- package/dist/browser/generated/operationsInterfaces/analyzeText.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/analyzeText.js.map +1 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/operationsInterfaces/index.js +9 -0
- package/dist/browser/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/index.d.ts +16 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +3 -3
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +6 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/lro.d.ts +60 -0
- package/dist/browser/lro.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/lro.js +5 -5
- package/dist/browser/lro.js.map +1 -0
- package/dist/browser/models.d.ts +881 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models.js +1 -1
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/textAnalysisClient.d.ts +487 -0
- package/dist/browser/textAnalysisClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/textAnalysisClient.js +7 -7
- package/dist/browser/textAnalysisClient.js.map +1 -0
- package/dist/browser/transforms.d.ts +12 -0
- package/dist/browser/transforms.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/transforms.js +1 -1
- package/dist/browser/transforms.js.map +1 -0
- package/dist/browser/util.d.ts +57 -0
- package/dist/browser/util.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/util.js +1 -1
- package/dist/browser/util.js.map +1 -0
- package/dist/commonjs/azureKeyCredentialPolicy.d.ts +9 -0
- package/dist/commonjs/azureKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/azureKeyCredentialPolicy.js +25 -0
- package/dist/commonjs/azureKeyCredentialPolicy.js.map +1 -0
- package/dist/commonjs/constants.d.ts +14 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +19 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/generated/generatedClient.d.ts +33 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +134 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +16 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +2034 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +735 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +171 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +2848 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +12 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +101 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/operations/analyzeText.d.ts +27 -0
- package/dist/commonjs/generated/operations/analyzeText.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/analyzeText.js +83 -0
- package/dist/commonjs/generated/operations/analyzeText.js.map +1 -0
- package/dist/commonjs/generated/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/index.js +12 -0
- package/dist/commonjs/generated/operations/index.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/analyzeText.d.ts +19 -0
- package/dist/commonjs/generated/operationsInterfaces/analyzeText.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/analyzeText.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/analyzeText.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +16 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +31 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +6 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +12 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/lro.d.ts +60 -0
- package/dist/commonjs/lro.d.ts.map +1 -0
- package/dist/commonjs/lro.js +200 -0
- package/dist/commonjs/lro.js.map +1 -0
- package/dist/commonjs/models.d.ts +881 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +38 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/textAnalysisClient.d.ts +487 -0
- package/dist/commonjs/textAnalysisClient.d.ts.map +1 -0
- package/dist/commonjs/textAnalysisClient.js +211 -0
- package/dist/commonjs/textAnalysisClient.js.map +1 -0
- package/dist/commonjs/transforms.d.ts +12 -0
- package/dist/commonjs/transforms.d.ts.map +1 -0
- package/dist/commonjs/transforms.js +388 -0
- package/dist/commonjs/transforms.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/util.d.ts +57 -0
- package/dist/commonjs/util.d.ts.map +1 -0
- package/dist/commonjs/util.js +141 -0
- package/dist/commonjs/util.js.map +1 -0
- package/dist/esm/azureKeyCredentialPolicy.d.ts +9 -0
- package/dist/esm/azureKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/esm/azureKeyCredentialPolicy.js +22 -0
- package/dist/esm/azureKeyCredentialPolicy.js.map +1 -0
- package/dist/esm/constants.d.ts +14 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +16 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +33 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/dist/esm/generated/generatedClient.js +129 -0
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +2034 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/index.js +732 -0
- package/dist/esm/generated/models/index.js.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +171 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.js +2843 -0
- package/dist/esm/generated/models/mappers.js.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +12 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.js +98 -0
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/generated/operations/analyzeText.d.ts +27 -0
- package/dist/esm/generated/operations/analyzeText.d.ts.map +1 -0
- package/dist/esm/generated/operations/analyzeText.js +78 -0
- package/dist/esm/generated/operations/analyzeText.js.map +1 -0
- package/dist/esm/generated/operations/index.d.ts +2 -0
- package/dist/esm/generated/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/operations/index.js +9 -0
- package/dist/esm/generated/operations/index.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/analyzeText.d.ts +19 -0
- package/dist/esm/generated/operationsInterfaces/analyzeText.d.ts.map +1 -0
- package/{dist-esm/src/generated/operationsInterfaces/index.js → dist/esm/generated/operationsInterfaces/analyzeText.js} +2 -2
- package/dist/esm/generated/operationsInterfaces/analyzeText.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +6 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +9 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/lro.d.ts +60 -0
- package/dist/esm/lro.d.ts.map +1 -0
- package/dist/esm/lro.js +191 -0
- package/dist/esm/lro.js.map +1 -0
- package/dist/esm/models.d.ts +881 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +35 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/textAnalysisClient.d.ts +487 -0
- package/dist/esm/textAnalysisClient.d.ts.map +1 -0
- package/dist/esm/textAnalysisClient.js +207 -0
- package/dist/esm/textAnalysisClient.js.map +1 -0
- package/dist/esm/transforms.d.ts +12 -0
- package/dist/esm/transforms.d.ts.map +1 -0
- package/dist/esm/transforms.js +383 -0
- package/dist/esm/transforms.js.map +1 -0
- package/dist/esm/util.d.ts +57 -0
- package/dist/esm/util.d.ts.map +1 -0
- package/dist/esm/util.js +131 -0
- package/dist/esm/util.js.map +1 -0
- package/dist/react-native/azureKeyCredentialPolicy.d.ts +9 -0
- package/dist/react-native/azureKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/react-native/azureKeyCredentialPolicy.js +22 -0
- package/dist/react-native/azureKeyCredentialPolicy.js.map +1 -0
- package/dist/react-native/constants.d.ts +14 -0
- package/dist/react-native/constants.d.ts.map +1 -0
- package/dist/react-native/constants.js +16 -0
- package/dist/react-native/constants.js.map +1 -0
- package/dist/react-native/generated/generatedClient.d.ts +33 -0
- package/dist/react-native/generated/generatedClient.d.ts.map +1 -0
- package/dist/react-native/generated/generatedClient.js +129 -0
- package/dist/react-native/generated/generatedClient.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +4 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/models/index.d.ts +2034 -0
- package/dist/react-native/generated/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/models/index.js +732 -0
- package/dist/react-native/generated/models/index.js.map +1 -0
- package/dist/react-native/generated/models/mappers.d.ts +171 -0
- package/dist/react-native/generated/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/models/mappers.js +2843 -0
- package/dist/react-native/generated/models/mappers.js.map +1 -0
- package/dist/react-native/generated/models/parameters.d.ts +12 -0
- package/dist/react-native/generated/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/models/parameters.js +98 -0
- package/dist/react-native/generated/models/parameters.js.map +1 -0
- package/dist/react-native/generated/operations/analyzeText.d.ts +27 -0
- package/dist/react-native/generated/operations/analyzeText.d.ts.map +1 -0
- package/dist/react-native/generated/operations/analyzeText.js +78 -0
- package/dist/react-native/generated/operations/analyzeText.js.map +1 -0
- package/dist/react-native/generated/operations/index.d.ts +2 -0
- package/dist/react-native/generated/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/operations/index.js +9 -0
- package/dist/react-native/generated/operations/index.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/analyzeText.d.ts +19 -0
- package/dist/react-native/generated/operationsInterfaces/analyzeText.d.ts.map +1 -0
- package/{dist-esm/src/generated/operations/index.js → dist/react-native/generated/operationsInterfaces/analyzeText.js} +2 -2
- package/dist/react-native/generated/operationsInterfaces/analyzeText.js.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/index.d.ts +16 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +18 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +6 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +9 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/lro.d.ts +60 -0
- package/dist/react-native/lro.d.ts.map +1 -0
- package/dist/react-native/lro.js +191 -0
- package/dist/react-native/lro.js.map +1 -0
- package/dist/react-native/models.d.ts +881 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +35 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/textAnalysisClient.d.ts +487 -0
- package/dist/react-native/textAnalysisClient.d.ts.map +1 -0
- package/dist/react-native/textAnalysisClient.js +207 -0
- package/dist/react-native/textAnalysisClient.js.map +1 -0
- package/dist/react-native/transforms.d.ts +12 -0
- package/dist/react-native/transforms.d.ts.map +1 -0
- package/dist/react-native/transforms.js +383 -0
- package/dist/react-native/transforms.js.map +1 -0
- package/dist/react-native/util.d.ts +57 -0
- package/dist/react-native/util.d.ts.map +1 -0
- package/dist/react-native/util.js +131 -0
- package/dist/react-native/util.js.map +1 -0
- package/package.json +71 -50
- package/dist/index.js +0 -5015
- package/dist/index.js.map +0 -1
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/operations/analyzeText.js.map +0 -1
- package/dist-esm/src/generated/operations/index.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/analyzeText.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lro.js.map +0 -1
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/textAnalysisClient.js.map +0 -1
- package/dist-esm/src/transforms.js.map +0 -1
- package/dist-esm/src/util.js.map +0 -1
- package/types/ai-language-text.d.ts +0 -2716
- /package/{dist-esm/src → dist/browser}/azureKeyCredentialPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/azureKeyCredentialPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/operationsInterfaces/analyzeText.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
@@ -1,2716 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* [Azure Cognitive Language Services](https://docs.microsoft.com/azure/cognitive-services/language-service/overview)
|
3
|
-
* is a suite of natural language processing (NLP) skills built with
|
4
|
-
* best-in-class Microsoft machine learning algorithms used to analyze
|
5
|
-
* unstructured text for actions such as sentiment analysis, key phrase
|
6
|
-
* extraction, and language detection.
|
7
|
-
*
|
8
|
-
* @packageDocumentation
|
9
|
-
*/
|
10
|
-
|
11
|
-
import { AzureKeyCredential } from '@azure/core-auth';
|
12
|
-
import type { CommonClientOptions } from '@azure/core-client';
|
13
|
-
import type { KeyCredential } from '@azure/core-auth';
|
14
|
-
import type { OperationOptions } from '@azure/core-client';
|
15
|
-
import type { OperationState } from '@azure/core-lro';
|
16
|
-
import type { PagedAsyncIterableIterator } from '@azure/core-paging';
|
17
|
-
import type { SimplePollerLike } from '@azure/core-lro';
|
18
|
-
import type { TokenCredential } from '@azure/core-auth';
|
19
|
-
|
20
|
-
/** Options for an Abstractive Summarization action. */
|
21
|
-
export declare interface AbstractiveSummarizationAction {
|
22
|
-
/** The approximate number of sentences to be part of the summary. */
|
23
|
-
sentenceCount?: number;
|
24
|
-
/**
|
25
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
26
|
-
*
|
27
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
28
|
-
*/
|
29
|
-
stringIndexType?: StringIndexType;
|
30
|
-
}
|
31
|
-
|
32
|
-
/** Options for an abstractive summarization batch action. */
|
33
|
-
export declare interface AbstractiveSummarizationBatchAction extends AnalyzeBatchActionCommon, AbstractiveSummarizationAction {
|
34
|
-
/**
|
35
|
-
* The kind of the action.
|
36
|
-
*/
|
37
|
-
kind: "AbstractiveSummarization";
|
38
|
-
}
|
39
|
-
|
40
|
-
/**
|
41
|
-
* The result of an abstractive summarization batch action.
|
42
|
-
*/
|
43
|
-
export declare type AbstractiveSummarizationBatchResult = ActionMetadata & BatchActionResult<AbstractiveSummarizationResult, "AbstractiveSummarization">;
|
44
|
-
|
45
|
-
/**
|
46
|
-
* An error result from the abstractive summarization action on a single document.
|
47
|
-
*/
|
48
|
-
export declare type AbstractiveSummarizationErrorResult = TextAnalysisErrorResult;
|
49
|
-
|
50
|
-
/**
|
51
|
-
* The result of the abstractive summarization action on a single document.
|
52
|
-
*/
|
53
|
-
export declare type AbstractiveSummarizationResult = AbstractiveSummarizationSuccessResult | AbstractiveSummarizationErrorResult;
|
54
|
-
|
55
|
-
/**
|
56
|
-
* The result of the abstractive summarization action on a single document,
|
57
|
-
* containing a collection of the summaries identified for that document.
|
58
|
-
*/
|
59
|
-
export declare interface AbstractiveSummarizationSuccessResult extends TextAnalysisSuccessResult {
|
60
|
-
/**
|
61
|
-
* A list of summaries of the input document.
|
62
|
-
*/
|
63
|
-
readonly summaries: AbstractiveSummary[];
|
64
|
-
}
|
65
|
-
|
66
|
-
/** An object representing a single summary with context for given document. */
|
67
|
-
export declare interface AbstractiveSummary {
|
68
|
-
/** The text of the summary. */
|
69
|
-
text: string;
|
70
|
-
/** The context list of the summary. */
|
71
|
-
contexts: SummaryContext[];
|
72
|
-
}
|
73
|
-
|
74
|
-
/** Configuration common to all actions. */
|
75
|
-
export declare interface ActionCommon {
|
76
|
-
/**
|
77
|
-
* If set to true, you opt-out of having your text input logged for troubleshooting. By default, Cognitive Language Service logs your input text for 48 hours, solely to allow for troubleshooting issues. Setting this parameter to true, disables in logging and may limit our ability to remediate issues that occur.
|
78
|
-
*
|
79
|
-
* Default is false.
|
80
|
-
*/
|
81
|
-
disableServiceLogs?: boolean;
|
82
|
-
}
|
83
|
-
|
84
|
-
/** Configuration common to all actions that use custom models. */
|
85
|
-
export declare interface ActionCustom extends ActionCommon {
|
86
|
-
/** The project name for the model to be used by the action. */
|
87
|
-
projectName: string;
|
88
|
-
/** The deployment name for the model to be used by the action. */
|
89
|
-
deploymentName: string;
|
90
|
-
}
|
91
|
-
|
92
|
-
/**
|
93
|
-
* Action metadata.
|
94
|
-
*/
|
95
|
-
export declare interface ActionMetadata {
|
96
|
-
/**
|
97
|
-
* The model version used to perform the action.
|
98
|
-
*/
|
99
|
-
readonly modelVersion: string;
|
100
|
-
}
|
101
|
-
|
102
|
-
/** Configuration common to all actions that use prebuilt models. */
|
103
|
-
export declare interface ActionPrebuilt extends ActionCommon {
|
104
|
-
/** The version of the model to be used by the action. */
|
105
|
-
modelVersion?: string;
|
106
|
-
}
|
107
|
-
|
108
|
-
/**
|
109
|
-
* Type of actions supported by the {@link TextAnalysisClient.analyze} method.
|
110
|
-
*/
|
111
|
-
export declare type AnalyzeActionName = keyof typeof AnalyzeActionNames;
|
112
|
-
|
113
|
-
/**
|
114
|
-
* Type of actions supported by the {@link TextAnalysisClient.analyze} method.
|
115
|
-
*/
|
116
|
-
export declare const AnalyzeActionNames: {
|
117
|
-
readonly EntityLinking: "EntityLinking";
|
118
|
-
readonly EntityRecognition: "EntityRecognition";
|
119
|
-
readonly KeyPhraseExtraction: "KeyPhraseExtraction";
|
120
|
-
readonly PiiEntityRecognition: "PiiEntityRecognition";
|
121
|
-
readonly LanguageDetection: "LanguageDetection";
|
122
|
-
readonly SentimentAnalysis: "SentimentAnalysis";
|
123
|
-
};
|
124
|
-
|
125
|
-
/**
|
126
|
-
* The type of parameters for every action in ${@link AnalyzeActionNames}.
|
127
|
-
*/
|
128
|
-
export declare type AnalyzeActionParameters<ActionName extends AnalyzeActionName> = {
|
129
|
-
EntityLinking: EntityLinkingAction;
|
130
|
-
EntityRecognition: EntityRecognitionAction;
|
131
|
-
PiiEntityRecognition: PiiEntityRecognitionAction;
|
132
|
-
KeyPhraseExtraction: KeyPhraseExtractionAction;
|
133
|
-
SentimentAnalysis: SentimentAnalysisAction;
|
134
|
-
LanguageDetection: LanguageDetectionAction;
|
135
|
-
}[ActionName];
|
136
|
-
|
137
|
-
/**
|
138
|
-
* Batch of actions.
|
139
|
-
*/
|
140
|
-
export declare type AnalyzeBatchAction = EntityLinkingBatchAction | EntityRecognitionBatchAction | KeyPhraseExtractionBatchAction | PiiEntityRecognitionBatchAction | HealthcareBatchAction | SentimentAnalysisBatchAction | ExtractiveSummarizationBatchAction | AbstractiveSummarizationBatchAction | CustomEntityRecognitionBatchAction | CustomSingleLabelClassificationBatchAction | CustomMultiLabelClassificationBatchAction;
|
141
|
-
|
142
|
-
/**
|
143
|
-
* Options common to all batch actions.
|
144
|
-
*/
|
145
|
-
export declare interface AnalyzeBatchActionCommon {
|
146
|
-
/**
|
147
|
-
* The name of the action.
|
148
|
-
*/
|
149
|
-
actionName?: string;
|
150
|
-
}
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Type of actions supported by the {@link TextAnalysisClient.beginAnalyzeBatch} method.
|
154
|
-
*/
|
155
|
-
export declare type AnalyzeBatchActionName = keyof typeof AnalyzeBatchActionNames;
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Type of actions supported by the {@link TextAnalysisClient.beginAnalyzeBatch} method.
|
159
|
-
*/
|
160
|
-
export declare const AnalyzeBatchActionNames: {
|
161
|
-
readonly SentimentAnalysis: "SentimentAnalysis";
|
162
|
-
readonly EntityRecognition: "EntityRecognition";
|
163
|
-
readonly PiiEntityRecognition: "PiiEntityRecognition";
|
164
|
-
readonly KeyPhraseExtraction: "KeyPhraseExtraction";
|
165
|
-
readonly EntityLinking: "EntityLinking";
|
166
|
-
readonly Healthcare: "Healthcare";
|
167
|
-
readonly ExtractiveSummarization: "ExtractiveSummarization";
|
168
|
-
readonly AbstractiveSummarization: "AbstractiveSummarization";
|
169
|
-
readonly CustomEntityRecognition: "CustomEntityRecognition";
|
170
|
-
readonly CustomSingleLabelClassification: "CustomSingleLabelClassification";
|
171
|
-
readonly CustomMultiLabelClassification: "CustomMultiLabelClassification";
|
172
|
-
};
|
173
|
-
|
174
|
-
/**
|
175
|
-
* The metadata for long-running operations started by {@link TextAnalysisClient.beginAnalyzeBatch}.
|
176
|
-
*/
|
177
|
-
export declare interface AnalyzeBatchOperationMetadata {
|
178
|
-
/**
|
179
|
-
* The date and time the operation was created.
|
180
|
-
*/
|
181
|
-
readonly createdOn: Date;
|
182
|
-
/**
|
183
|
-
* The date and time when the operation results will expire on the server.
|
184
|
-
*/
|
185
|
-
readonly expiresOn?: Date;
|
186
|
-
/**
|
187
|
-
* The operation id.
|
188
|
-
*/
|
189
|
-
readonly id: string;
|
190
|
-
/**
|
191
|
-
* The time the operation status was last updated.
|
192
|
-
*/
|
193
|
-
readonly modifiedOn: Date;
|
194
|
-
/**
|
195
|
-
* Number of successfully completed actions.
|
196
|
-
*/
|
197
|
-
readonly actionSucceededCount: number;
|
198
|
-
/**
|
199
|
-
* Number of failed actions.
|
200
|
-
*/
|
201
|
-
readonly actionFailedCount: number;
|
202
|
-
/**
|
203
|
-
* Number of actions still in progress.
|
204
|
-
*/
|
205
|
-
readonly actionInProgressCount: number;
|
206
|
-
/**
|
207
|
-
* The operation's display name.
|
208
|
-
*/
|
209
|
-
readonly displayName?: string;
|
210
|
-
}
|
211
|
-
|
212
|
-
/**
|
213
|
-
* The state of the begin analyze polling operation.
|
214
|
-
*/
|
215
|
-
export declare interface AnalyzeBatchOperationState extends OperationState<PagedAnalyzeBatchResult>, AnalyzeBatchOperationMetadata {
|
216
|
-
}
|
217
|
-
|
218
|
-
/**
|
219
|
-
* A poller that polls long-running operations started by {@link TextAnalysisClient.beginAnalyzeBatch}.
|
220
|
-
*/
|
221
|
-
export declare type AnalyzeBatchPoller = PollerLike<AnalyzeBatchOperationState, PagedAnalyzeBatchResult>;
|
222
|
-
|
223
|
-
/**
|
224
|
-
* Results of a batch of actions.
|
225
|
-
*/
|
226
|
-
export declare type AnalyzeBatchResult = EntityLinkingBatchResult | EntityRecognitionBatchResult | KeyPhraseExtractionBatchResult | PiiEntityRecognitionBatchResult | SentimentAnalysisBatchResult | HealthcareBatchResult | ExtractiveSummarizationBatchResult | AbstractiveSummarizationBatchResult | CustomEntityRecognitionBatchResult | CustomSingleLabelClassificationBatchResult | CustomMultiLabelClassificationBatchResult;
|
227
|
-
|
228
|
-
/**
|
229
|
-
* The type of results of every action in ${@link AnalyzeActionNames}.
|
230
|
-
*/
|
231
|
-
export declare type AnalyzeResult<ActionName extends AnalyzeActionName> = {
|
232
|
-
EntityLinking: EntityLinkingResult[];
|
233
|
-
EntityRecognition: EntityRecognitionResult[];
|
234
|
-
PiiEntityRecognition: PiiEntityRecognitionResult[];
|
235
|
-
KeyPhraseExtraction: KeyPhraseExtractionResult[];
|
236
|
-
SentimentAnalysis: SentimentAnalysisResult[];
|
237
|
-
LanguageDetection: LanguageDetectionResult[];
|
238
|
-
}[ActionName];
|
239
|
-
|
240
|
-
/** An object that contains the predicted sentiment, confidence scores and other information about an assessment of a target. For example, in the sentence "The food is good", the assessment of the target 'food' is 'good'. */
|
241
|
-
export declare interface AssessmentSentiment {
|
242
|
-
/** Assessment sentiment in the sentence. */
|
243
|
-
sentiment: TokenSentimentLabel;
|
244
|
-
/** Assessment sentiment confidence scores in the sentence. */
|
245
|
-
confidenceScores: TargetConfidenceScores;
|
246
|
-
/** The assessment offset from the start of the sentence. */
|
247
|
-
offset: number;
|
248
|
-
/** The length of the assessment. */
|
249
|
-
length: number;
|
250
|
-
/** The assessment text detected. */
|
251
|
-
text: string;
|
252
|
-
/** The indicator representing if the assessment is negated. */
|
253
|
-
isNegated: boolean;
|
254
|
-
}
|
255
|
-
|
256
|
-
export { AzureKeyCredential }
|
257
|
-
|
258
|
-
/**
|
259
|
-
* The error of an analyze batch action.
|
260
|
-
*/
|
261
|
-
export declare interface BatchActionErrorResult<Kind extends AnalyzeBatchActionName> extends BatchActionState<Kind> {
|
262
|
-
/**
|
263
|
-
* When this action was completed by the service.
|
264
|
-
*/
|
265
|
-
readonly failedOn: Date;
|
266
|
-
/**
|
267
|
-
* The Error for this action result.
|
268
|
-
*/
|
269
|
-
readonly error: TextAnalysisError;
|
270
|
-
}
|
271
|
-
|
272
|
-
/**
|
273
|
-
* The result of a batched action.
|
274
|
-
*/
|
275
|
-
export declare type BatchActionResult<T, Kind extends AnalyzeBatchActionName> = BatchActionSuccessResult<T, Kind> | BatchActionErrorResult<Kind>;
|
276
|
-
|
277
|
-
/** The State of a batched action */
|
278
|
-
export declare interface BatchActionState<Kind extends AnalyzeBatchActionName> {
|
279
|
-
/**
|
280
|
-
* The kind of the action results.
|
281
|
-
*/
|
282
|
-
readonly kind: Kind;
|
283
|
-
/**
|
284
|
-
* The name of the action.
|
285
|
-
*/
|
286
|
-
readonly actionName?: string;
|
287
|
-
/**
|
288
|
-
* Action statistics.
|
289
|
-
*/
|
290
|
-
readonly statistics?: TextDocumentBatchStatistics;
|
291
|
-
}
|
292
|
-
|
293
|
-
/**
|
294
|
-
* The state of a succeeded batched action.
|
295
|
-
*/
|
296
|
-
export declare interface BatchActionSuccessResult<T, Kind extends AnalyzeBatchActionName> extends BatchActionState<Kind> {
|
297
|
-
/**
|
298
|
-
* The list of document results.
|
299
|
-
*/
|
300
|
-
readonly results: T[];
|
301
|
-
/**
|
302
|
-
* When this action was completed by the service.
|
303
|
-
*/
|
304
|
-
readonly completedOn: Date;
|
305
|
-
/**
|
306
|
-
* Discriminant to determine if that this is an error result.
|
307
|
-
*/
|
308
|
-
readonly error?: undefined;
|
309
|
-
}
|
310
|
-
|
311
|
-
/**
|
312
|
-
* Options for the begin analyze actions operation.
|
313
|
-
*/
|
314
|
-
export declare interface BeginAnalyzeBatchOptions extends TextAnalysisOperationOptions {
|
315
|
-
/**
|
316
|
-
* Time delay between poll requests, in milliseconds.
|
317
|
-
*/
|
318
|
-
updateIntervalInMs?: number;
|
319
|
-
/**
|
320
|
-
* The operation's display name.
|
321
|
-
*/
|
322
|
-
displayName?: string;
|
323
|
-
}
|
324
|
-
|
325
|
-
/** A classification result from a custom classify document single category action */
|
326
|
-
export declare interface ClassificationCategory {
|
327
|
-
/** Classification type. */
|
328
|
-
category: string;
|
329
|
-
/** Confidence score between 0 and 1 of the recognized class. */
|
330
|
-
confidenceScore: number;
|
331
|
-
}
|
332
|
-
|
333
|
-
/**
|
334
|
-
* Custom action metadata.
|
335
|
-
*/
|
336
|
-
export declare interface CustomActionMetadata {
|
337
|
-
/**
|
338
|
-
* The name of the project used to perform the action.
|
339
|
-
*/
|
340
|
-
readonly projectName: string;
|
341
|
-
/**
|
342
|
-
* The name of the deployment used to perform the action.
|
343
|
-
*/
|
344
|
-
readonly deploymentName: string;
|
345
|
-
}
|
346
|
-
|
347
|
-
/** Supported parameters for a Custom Entities task. */
|
348
|
-
export declare interface CustomEntityRecognitionAction extends ActionCustom {
|
349
|
-
/**
|
350
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
351
|
-
*
|
352
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
353
|
-
*/
|
354
|
-
stringIndexType?: StringIndexType;
|
355
|
-
}
|
356
|
-
|
357
|
-
/** Options for a custom entity recognition batch action. */
|
358
|
-
export declare interface CustomEntityRecognitionBatchAction extends AnalyzeBatchActionCommon, CustomEntityRecognitionAction {
|
359
|
-
/**
|
360
|
-
* The kind of the action.
|
361
|
-
*/
|
362
|
-
kind: "CustomEntityRecognition";
|
363
|
-
}
|
364
|
-
|
365
|
-
/**
|
366
|
-
* The result of a custom entity recognition batch action.
|
367
|
-
*/
|
368
|
-
export declare type CustomEntityRecognitionBatchResult = CustomActionMetadata & BatchActionResult<CustomEntityRecognitionResult, "CustomEntityRecognition">;
|
369
|
-
|
370
|
-
/**
|
371
|
-
* An error result from the custom entity recognition action on a single document.
|
372
|
-
*/
|
373
|
-
export declare type CustomEntityRecognitionErrorResult = TextAnalysisErrorResult;
|
374
|
-
|
375
|
-
/**
|
376
|
-
* The result of the custom entity recognition action on a single document.
|
377
|
-
*/
|
378
|
-
export declare type CustomEntityRecognitionResult = CustomEntityRecognitionSuccessResult | CustomEntityRecognitionErrorResult;
|
379
|
-
|
380
|
-
/**
|
381
|
-
* The result of the custom entity recognition action on a single document,
|
382
|
-
* containing a collection of the entities identified in that document.
|
383
|
-
*/
|
384
|
-
export declare interface CustomEntityRecognitionSuccessResult extends TextAnalysisSuccessResult {
|
385
|
-
/**
|
386
|
-
* The collection of entities identified in the input document.
|
387
|
-
*/
|
388
|
-
readonly entities: Entity[];
|
389
|
-
}
|
390
|
-
|
391
|
-
/** Options for a multi-label classification custom action */
|
392
|
-
export declare interface CustomMultiLabelClassificationAction extends ActionCustom {
|
393
|
-
}
|
394
|
-
|
395
|
-
/** Options for a custom multi-label classification batch action. */
|
396
|
-
export declare interface CustomMultiLabelClassificationBatchAction extends AnalyzeBatchActionCommon, CustomMultiLabelClassificationAction {
|
397
|
-
/**
|
398
|
-
* The kind of the action.
|
399
|
-
*/
|
400
|
-
kind: "CustomMultiLabelClassification";
|
401
|
-
}
|
402
|
-
|
403
|
-
/**
|
404
|
-
* The result of a custom multi-label classification batch action.
|
405
|
-
*/
|
406
|
-
export declare type CustomMultiLabelClassificationBatchResult = CustomActionMetadata & BatchActionResult<CustomMultiLabelClassificationResult, "CustomMultiLabelClassification">;
|
407
|
-
|
408
|
-
/**
|
409
|
-
* An error result from the multi-label classification action on a multi document.
|
410
|
-
*/
|
411
|
-
export declare type CustomMultiLabelClassificationErrorResult = TextAnalysisErrorResult;
|
412
|
-
|
413
|
-
/**
|
414
|
-
* The result of the multi-label classification action on a multi document.
|
415
|
-
*/
|
416
|
-
export declare type CustomMultiLabelClassificationResult = CustomMultiLabelClassificationSuccessResult | CustomMultiLabelClassificationErrorResult;
|
417
|
-
|
418
|
-
/**
|
419
|
-
* The result of a successful multi-label classification action on a multi document,
|
420
|
-
* containing the result of the classification.
|
421
|
-
*/
|
422
|
-
export declare interface CustomMultiLabelClassificationSuccessResult extends TextAnalysisSuccessResult {
|
423
|
-
/**
|
424
|
-
* The collection of classifications in the input document.
|
425
|
-
*/
|
426
|
-
readonly classifications: ClassificationCategory[];
|
427
|
-
}
|
428
|
-
|
429
|
-
/** Options for a single-label classification custom action */
|
430
|
-
export declare interface CustomSingleLabelClassificationAction extends ActionCustom {
|
431
|
-
}
|
432
|
-
|
433
|
-
/** Options for a custom single-label classification batch action. */
|
434
|
-
export declare interface CustomSingleLabelClassificationBatchAction extends AnalyzeBatchActionCommon, CustomSingleLabelClassificationAction {
|
435
|
-
/**
|
436
|
-
* The kind of the action.
|
437
|
-
*/
|
438
|
-
kind: "CustomSingleLabelClassification";
|
439
|
-
}
|
440
|
-
|
441
|
-
/**
|
442
|
-
* The result of a custom single-label classification batch action.
|
443
|
-
*/
|
444
|
-
export declare type CustomSingleLabelClassificationBatchResult = CustomActionMetadata & BatchActionResult<CustomSingleLabelClassificationResult, "CustomSingleLabelClassification">;
|
445
|
-
|
446
|
-
/**
|
447
|
-
* An error result from the single-label classification action on a single document.
|
448
|
-
*/
|
449
|
-
export declare type CustomSingleLabelClassificationErrorResult = TextAnalysisErrorResult;
|
450
|
-
|
451
|
-
/**
|
452
|
-
* The result of the single-label classification action on a single document.
|
453
|
-
*/
|
454
|
-
export declare type CustomSingleLabelClassificationResult = CustomSingleLabelClassificationSuccessResult | CustomSingleLabelClassificationErrorResult;
|
455
|
-
|
456
|
-
/**
|
457
|
-
* The result of a successful single-label classification action on a single document,
|
458
|
-
* containing the result of the classification.
|
459
|
-
*/
|
460
|
-
export declare interface CustomSingleLabelClassificationSuccessResult extends TextAnalysisSuccessResult {
|
461
|
-
/**
|
462
|
-
* The collection of classifications in the input document.
|
463
|
-
*/
|
464
|
-
readonly classifications: ClassificationCategory[];
|
465
|
-
}
|
466
|
-
|
467
|
-
/** Information about the language of a document as identified by the Language service. */
|
468
|
-
export declare interface DetectedLanguage {
|
469
|
-
/** Long name of a detected language (e.g. English, French). */
|
470
|
-
name: string;
|
471
|
-
/** A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr). */
|
472
|
-
iso6391Name: string;
|
473
|
-
/** A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. */
|
474
|
-
confidenceScore: number;
|
475
|
-
}
|
476
|
-
|
477
|
-
/** Defines values for DocumentSentimentLabel. */
|
478
|
-
export declare type DocumentSentimentLabel = "positive" | "neutral" | "negative" | "mixed";
|
479
|
-
|
480
|
-
/** Represents a warning encountered while processing a document. */
|
481
|
-
export declare interface DocumentWarning {
|
482
|
-
/** Error code. */
|
483
|
-
code: WarningCode;
|
484
|
-
/** Warning message. */
|
485
|
-
message: string;
|
486
|
-
}
|
487
|
-
|
488
|
-
/** A word or phrase identified as an entity that is categorized within a taxonomy of types. The set of categories recognized by the Language service is described at https://docs.microsoft.com/azure/cognitive-services/language-service/named-entity-recognition/concepts/named-entity-categories . */
|
489
|
-
export declare interface Entity {
|
490
|
-
/** Entity text as appears in the request. */
|
491
|
-
text: string;
|
492
|
-
/** Entity type. */
|
493
|
-
category: string;
|
494
|
-
/** (Optional) Entity sub type. */
|
495
|
-
subCategory?: string;
|
496
|
-
/** Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. */
|
497
|
-
offset: number;
|
498
|
-
/** Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. */
|
499
|
-
length: number;
|
500
|
-
/** Confidence score between 0 and 1 of the extracted entity. */
|
501
|
-
confidenceScore: number;
|
502
|
-
}
|
503
|
-
|
504
|
-
/** Defines values for EntityAssociation. */
|
505
|
-
export declare type EntityAssociation = "subject" | "other";
|
506
|
-
|
507
|
-
/** Defines values for EntityCertainty. */
|
508
|
-
export declare type EntityCertainty = "positive" | "positivePossible" | "neutralPossible" | "negativePossible" | "negative";
|
509
|
-
|
510
|
-
/** Defines values for EntityConditionality. */
|
511
|
-
export declare type EntityConditionality = "hypothetical" | "conditional";
|
512
|
-
|
513
|
-
/** A type representing a reference for the healthcare entity into a specific entity catalog. */
|
514
|
-
export declare interface EntityDataSource {
|
515
|
-
/** Entity Catalog. Examples include: UMLS, CHV, MSH, etc. */
|
516
|
-
name: string;
|
517
|
-
/** Entity id in the given source catalog. */
|
518
|
-
entityId: string;
|
519
|
-
}
|
520
|
-
|
521
|
-
/** Options for an entity linking action. */
|
522
|
-
export declare interface EntityLinkingAction extends ActionPrebuilt {
|
523
|
-
/**
|
524
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
525
|
-
*
|
526
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
527
|
-
*/
|
528
|
-
stringIndexType?: StringIndexType;
|
529
|
-
}
|
530
|
-
|
531
|
-
/** Options for an entity linking batch action. */
|
532
|
-
export declare interface EntityLinkingBatchAction extends AnalyzeBatchActionCommon, EntityLinkingAction {
|
533
|
-
/**
|
534
|
-
* The kind of the action.
|
535
|
-
*/
|
536
|
-
kind: "EntityLinking";
|
537
|
-
}
|
538
|
-
|
539
|
-
/**
|
540
|
-
* The result of an entity linking batch action.
|
541
|
-
*/
|
542
|
-
export declare type EntityLinkingBatchResult = ActionMetadata & BatchActionResult<EntityLinkingResult, "EntityLinking">;
|
543
|
-
|
544
|
-
/**
|
545
|
-
* An error result from an entity linking action on a single document.
|
546
|
-
*/
|
547
|
-
export declare type EntityLinkingErrorResult = TextAnalysisErrorResult;
|
548
|
-
|
549
|
-
/**
|
550
|
-
* The result of an entity linking action on a single document.
|
551
|
-
*/
|
552
|
-
export declare type EntityLinkingResult = EntityLinkingSuccessResult | EntityLinkingErrorResult;
|
553
|
-
|
554
|
-
/**
|
555
|
-
* The result of a entity linking action on a single document, containing a
|
556
|
-
* collection of the {@link LinkedEntity} objects identified in that document.
|
557
|
-
*/
|
558
|
-
export declare interface EntityLinkingSuccessResult extends TextAnalysisSuccessResult {
|
559
|
-
/**
|
560
|
-
* The collection of entities identified in the input document.
|
561
|
-
*/
|
562
|
-
readonly entities: LinkedEntity[];
|
563
|
-
}
|
564
|
-
|
565
|
-
/** Options for an entity recognition action. */
|
566
|
-
export declare interface EntityRecognitionAction extends ActionPrebuilt {
|
567
|
-
/**
|
568
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
569
|
-
*
|
570
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
571
|
-
*/
|
572
|
-
stringIndexType?: StringIndexType;
|
573
|
-
}
|
574
|
-
|
575
|
-
/** Options for an entity recognition batch action. */
|
576
|
-
export declare interface EntityRecognitionBatchAction extends AnalyzeBatchActionCommon, EntityRecognitionAction {
|
577
|
-
/**
|
578
|
-
* The kind of the action.
|
579
|
-
*/
|
580
|
-
kind: "EntityRecognition";
|
581
|
-
}
|
582
|
-
|
583
|
-
/**
|
584
|
-
* The result of an entity recognition batch action.
|
585
|
-
*/
|
586
|
-
export declare type EntityRecognitionBatchResult = ActionMetadata & BatchActionResult<EntityRecognitionResult, "EntityRecognition">;
|
587
|
-
|
588
|
-
/**
|
589
|
-
* An error result from an entity recognition action on a single document.
|
590
|
-
*/
|
591
|
-
export declare type EntityRecognitionErrorResult = TextAnalysisErrorResult;
|
592
|
-
|
593
|
-
/**
|
594
|
-
* The result of an entity recognition action on a single document.
|
595
|
-
*/
|
596
|
-
export declare type EntityRecognitionResult = EntityRecognitionSuccessResult | EntityRecognitionErrorResult;
|
597
|
-
|
598
|
-
/**
|
599
|
-
* The result of an entity recognition action on a single document, containing
|
600
|
-
* a collection of {@link Entity} objects identified in that document.
|
601
|
-
*/
|
602
|
-
export declare interface EntityRecognitionSuccessResult extends TextAnalysisSuccessResult {
|
603
|
-
/**
|
604
|
-
* The collection of entities identified in the input document.
|
605
|
-
*/
|
606
|
-
readonly entities: Entity[];
|
607
|
-
}
|
608
|
-
|
609
|
-
/** Supported parameters for an Extractive Summarization task. */
|
610
|
-
export declare interface ExtractiveSummarizationAction extends ActionPrebuilt {
|
611
|
-
/** The max number of sentences to be part of the summary. */
|
612
|
-
maxSentenceCount?: number;
|
613
|
-
/** The sorting criteria to use for the results of Extractive Summarization. */
|
614
|
-
orderBy?: ExtractiveSummarizationOrderingCriteria;
|
615
|
-
/**
|
616
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
617
|
-
*
|
618
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
619
|
-
*/
|
620
|
-
stringIndexType?: StringIndexType;
|
621
|
-
}
|
622
|
-
|
623
|
-
/** Options for an extractive summarization batch action. */
|
624
|
-
export declare interface ExtractiveSummarizationBatchAction extends AnalyzeBatchActionCommon, ExtractiveSummarizationAction {
|
625
|
-
/**
|
626
|
-
* The kind of the action.
|
627
|
-
*/
|
628
|
-
kind: "ExtractiveSummarization";
|
629
|
-
}
|
630
|
-
|
631
|
-
/**
|
632
|
-
* The result of an extractive summarization batch action.
|
633
|
-
*/
|
634
|
-
export declare type ExtractiveSummarizationBatchResult = ActionMetadata & BatchActionResult<ExtractiveSummarizationResult, "ExtractiveSummarization">;
|
635
|
-
|
636
|
-
/**
|
637
|
-
* An error result from the extractive summarization action on a single document.
|
638
|
-
*/
|
639
|
-
export declare type ExtractiveSummarizationErrorResult = TextAnalysisErrorResult;
|
640
|
-
|
641
|
-
/**
|
642
|
-
* Defines values for ExtractiveSummarizationOrderingCriteria. \
|
643
|
-
* {@link KnownExtractiveSummarizationOrderingCriteria} can be used interchangeably with ExtractiveSummarizationOrderingCriteria,
|
644
|
-
* this enum contains the known values that the service supports.
|
645
|
-
* ### Known values supported by the service
|
646
|
-
* **Offset**: Indicates that results should be sorted in order of appearance in the text. \
|
647
|
-
* **Rank**: Indicates that results should be sorted in order of importance (i.e. rank score) according to the model.
|
648
|
-
*/
|
649
|
-
export declare type ExtractiveSummarizationOrderingCriteria = string;
|
650
|
-
|
651
|
-
/**
|
652
|
-
* The result of the extractive summarization action on a single document.
|
653
|
-
*/
|
654
|
-
export declare type ExtractiveSummarizationResult = ExtractiveSummarizationSuccessResult | ExtractiveSummarizationErrorResult;
|
655
|
-
|
656
|
-
/**
|
657
|
-
* The result of the extractive summarization action on a single document,
|
658
|
-
* containing a collection of the summary identified in that document.
|
659
|
-
*/
|
660
|
-
export declare interface ExtractiveSummarizationSuccessResult extends TextAnalysisSuccessResult {
|
661
|
-
/**
|
662
|
-
* A list of sentences composing a summary of the input document.
|
663
|
-
*/
|
664
|
-
readonly sentences: SummarySentence[];
|
665
|
-
}
|
666
|
-
|
667
|
-
/** Supported parameters for a Healthcare task. */
|
668
|
-
export declare interface HealthcareAction extends ActionPrebuilt {
|
669
|
-
/**
|
670
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
671
|
-
*
|
672
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
673
|
-
*/
|
674
|
-
stringIndexType?: StringIndexType;
|
675
|
-
}
|
676
|
-
|
677
|
-
/** An object that describes metadata about the healthcare entity such as whether it is hypothetical or conditional. */
|
678
|
-
export declare interface HealthcareAssertion {
|
679
|
-
/** Describes any conditionality on the entity. */
|
680
|
-
conditionality?: EntityConditionality;
|
681
|
-
/** Describes the entities certainty and polarity. */
|
682
|
-
certainty?: EntityCertainty;
|
683
|
-
/** Describes if the entity is the subject of the text or if it describes someone else. */
|
684
|
-
association?: EntityAssociation;
|
685
|
-
}
|
686
|
-
|
687
|
-
/** Options for a healthcare batch action. */
|
688
|
-
export declare interface HealthcareBatchAction extends AnalyzeBatchActionCommon, HealthcareAction {
|
689
|
-
/**
|
690
|
-
* The kind of the action.
|
691
|
-
*/
|
692
|
-
kind: "Healthcare";
|
693
|
-
}
|
694
|
-
|
695
|
-
/**
|
696
|
-
* The result of a healthcare batch action.
|
697
|
-
*/
|
698
|
-
export declare type HealthcareBatchResult = ActionMetadata & BatchActionResult<HealthcareResult, "Healthcare">;
|
699
|
-
|
700
|
-
/**
|
701
|
-
* A healthcare entity represented as a node in a directed graph where the edges are
|
702
|
-
* a particular type of relationship between the source and target nodes.
|
703
|
-
*/
|
704
|
-
export declare interface HealthcareEntity extends Entity {
|
705
|
-
/**
|
706
|
-
* Normalized name for the entity. For example, the normalized text for "histologically" is "histologic".
|
707
|
-
*/
|
708
|
-
readonly normalizedText?: string;
|
709
|
-
/**
|
710
|
-
* Whether the entity is negated.
|
711
|
-
*/
|
712
|
-
readonly assertion?: HealthcareAssertion;
|
713
|
-
/**
|
714
|
-
* Entity references in known data sources.
|
715
|
-
*/
|
716
|
-
readonly dataSources: EntityDataSource[];
|
717
|
-
/**
|
718
|
-
* Defines values for HealthcareEntityCategory.
|
719
|
-
* {@link KnownHealthcareEntityCategory} can be used interchangeably with HealthcareEntityCategory,
|
720
|
-
* this enum contains the known values that the service supports.
|
721
|
-
* ### Known values supported by the service
|
722
|
-
* **BODY_STRUCTURE**
|
723
|
-
* **AGE**
|
724
|
-
* **GENDER**
|
725
|
-
* **EXAMINATION_NAME**
|
726
|
-
* **DATE**
|
727
|
-
* **DIRECTION**
|
728
|
-
* **FREQUENCY**
|
729
|
-
* **MEASUREMENT_VALUE**
|
730
|
-
* **MEASUREMENT_UNIT**
|
731
|
-
* **RELATIONAL_OPERATOR**
|
732
|
-
* **TIME**
|
733
|
-
* **GENE_OR_PROTEIN**
|
734
|
-
* **VARIANT**
|
735
|
-
* **ADMINISTRATIVE_EVENT**
|
736
|
-
* **CARE_ENVIRONMENT**
|
737
|
-
* **HEALTHCARE_PROFESSION**
|
738
|
-
* **DIAGNOSIS**
|
739
|
-
* **SYMPTOM_OR_SIGN**
|
740
|
-
* **CONDITION_QUALIFIER**
|
741
|
-
* **MEDICATION_CLASS**
|
742
|
-
* **MEDICATION_NAME**
|
743
|
-
* **DOSAGE**
|
744
|
-
* **MEDICATION_FORM**
|
745
|
-
* **MEDICATION_ROUTE**
|
746
|
-
* **FAMILY_RELATION**
|
747
|
-
* **TREATMENT_NAME**
|
748
|
-
*/
|
749
|
-
readonly category: HealthcareEntityCategory;
|
750
|
-
}
|
751
|
-
|
752
|
-
/**
|
753
|
-
* Defines values for HealthcareEntityCategory. \
|
754
|
-
* {@link KnownHealthcareEntityCategory} can be used interchangeably with HealthcareEntityCategory,
|
755
|
-
* this enum contains the known values that the service supports.
|
756
|
-
* ### Known values supported by the service
|
757
|
-
* **BodyStructure** \
|
758
|
-
* **Age** \
|
759
|
-
* **Gender** \
|
760
|
-
* **Ethnicity** \
|
761
|
-
* **ExaminationName** \
|
762
|
-
* **Date** \
|
763
|
-
* **Direction** \
|
764
|
-
* **Frequency** \
|
765
|
-
* **MeasurementValue** \
|
766
|
-
* **MeasurementUnit** \
|
767
|
-
* **RelationalOperator** \
|
768
|
-
* **Time** \
|
769
|
-
* **Course** \
|
770
|
-
* **GeneOrProtein** \
|
771
|
-
* **Variant** \
|
772
|
-
* **Expression** \
|
773
|
-
* **MutationType** \
|
774
|
-
* **AdministrativeEvent** \
|
775
|
-
* **CareEnvironment** \
|
776
|
-
* **HealthcareProfession** \
|
777
|
-
* **Diagnosis** \
|
778
|
-
* **SymptomOrSign** \
|
779
|
-
* **ConditionQualifier** \
|
780
|
-
* **ConditionScale** \
|
781
|
-
* **MedicationClass** \
|
782
|
-
* **MedicationName** \
|
783
|
-
* **Dosage** \
|
784
|
-
* **MedicationForm** \
|
785
|
-
* **MedicationRoute** \
|
786
|
-
* **FamilyRelation** \
|
787
|
-
* **TreatmentName** \
|
788
|
-
* **Allergen** \
|
789
|
-
* **Employment** \
|
790
|
-
* **LivingStatus** \
|
791
|
-
* **SubstanceUse** \
|
792
|
-
* **SubstanceUseAmount**
|
793
|
-
*/
|
794
|
-
export declare type HealthcareEntityCategory = string;
|
795
|
-
|
796
|
-
/**
|
797
|
-
* A relationship between two or more healthcare entities.
|
798
|
-
*/
|
799
|
-
export declare interface HealthcareEntityRelation {
|
800
|
-
/**
|
801
|
-
* The type of the healthcare relation.
|
802
|
-
*/
|
803
|
-
readonly relationType: RelationType;
|
804
|
-
/**
|
805
|
-
* The list of healthcare entities and their roles in the healthcare relation.
|
806
|
-
*/
|
807
|
-
readonly roles: HealthcareEntityRelationRole[];
|
808
|
-
/**
|
809
|
-
* The confidence score between 0 and 1 of the extracted relation.
|
810
|
-
*/
|
811
|
-
readonly confidenceScore?: number;
|
812
|
-
}
|
813
|
-
|
814
|
-
/**
|
815
|
-
* A healthcare entity that plays a specific role in a relation.
|
816
|
-
*/
|
817
|
-
export declare interface HealthcareEntityRelationRole {
|
818
|
-
/**
|
819
|
-
* A healthcare entity
|
820
|
-
*/
|
821
|
-
readonly entity: HealthcareEntity;
|
822
|
-
/**
|
823
|
-
* The role of the healthcare entity in a particular relation.
|
824
|
-
*/
|
825
|
-
readonly name: HealthcareEntityRelationRoleType;
|
826
|
-
}
|
827
|
-
|
828
|
-
/**
|
829
|
-
* The type of different roles a healthcare entity can play in a relation.
|
830
|
-
*/
|
831
|
-
export declare type HealthcareEntityRelationRoleType = string;
|
832
|
-
|
833
|
-
/**
|
834
|
-
* An error result from the healthcare analysis action on a single document.
|
835
|
-
*/
|
836
|
-
export declare type HealthcareErrorResult = TextAnalysisErrorResult;
|
837
|
-
|
838
|
-
/**
|
839
|
-
* The result of the healthcare analysis action on a single document.
|
840
|
-
*/
|
841
|
-
export declare type HealthcareResult = HealthcareSuccessResult | HealthcareErrorResult;
|
842
|
-
|
843
|
-
/**
|
844
|
-
* The results of a successful healthcare analysis action for a single document.
|
845
|
-
*/
|
846
|
-
export declare interface HealthcareSuccessResult extends TextAnalysisSuccessResult {
|
847
|
-
/**
|
848
|
-
* Healthcare entities.
|
849
|
-
*/
|
850
|
-
readonly entities: HealthcareEntity[];
|
851
|
-
/**
|
852
|
-
* Relations between healthcare entities.
|
853
|
-
*/
|
854
|
-
readonly entityRelations: HealthcareEntityRelation[];
|
855
|
-
}
|
856
|
-
|
857
|
-
/** Options for a key phrase recognition action. */
|
858
|
-
export declare interface KeyPhraseExtractionAction extends ActionPrebuilt {
|
859
|
-
}
|
860
|
-
|
861
|
-
/** Options for an key phrase extraction batch action. */
|
862
|
-
export declare interface KeyPhraseExtractionBatchAction extends AnalyzeBatchActionCommon, KeyPhraseExtractionAction {
|
863
|
-
/**
|
864
|
-
* The kind of the action.
|
865
|
-
*/
|
866
|
-
kind: "KeyPhraseExtraction";
|
867
|
-
}
|
868
|
-
|
869
|
-
/**
|
870
|
-
* The result of a key phrase extraction batch action.
|
871
|
-
*/
|
872
|
-
export declare type KeyPhraseExtractionBatchResult = ActionMetadata & BatchActionResult<KeyPhraseExtractionResult, "KeyPhraseExtraction">;
|
873
|
-
|
874
|
-
/**
|
875
|
-
* An error result from a key phrase extraction action on a single document.
|
876
|
-
*/
|
877
|
-
export declare type KeyPhraseExtractionErrorResult = TextAnalysisErrorResult;
|
878
|
-
|
879
|
-
/**
|
880
|
-
* The result of a sentiment analysis action on a single document.
|
881
|
-
*/
|
882
|
-
export declare type KeyPhraseExtractionResult = KeyPhraseExtractionSuccessResult | KeyPhraseExtractionErrorResult;
|
883
|
-
|
884
|
-
/**
|
885
|
-
* The result of a key phrase extraction action on a single document,
|
886
|
-
* containing a collection of the key phrases identified in that document.
|
887
|
-
*/
|
888
|
-
export declare interface KeyPhraseExtractionSuccessResult extends TextAnalysisSuccessResult {
|
889
|
-
/**
|
890
|
-
* A list of representative words or phrases. The number of key phrases
|
891
|
-
* returned is proportional to the number of words in the input document.
|
892
|
-
*/
|
893
|
-
readonly keyPhrases: string[];
|
894
|
-
}
|
895
|
-
|
896
|
-
/** Known values of {@link ErrorCode} that the service accepts. */
|
897
|
-
export declare enum KnownErrorCode {
|
898
|
-
/** InvalidRequest */
|
899
|
-
InvalidRequest = "InvalidRequest",
|
900
|
-
/** InvalidArgument */
|
901
|
-
InvalidArgument = "InvalidArgument",
|
902
|
-
/** Unauthorized */
|
903
|
-
Unauthorized = "Unauthorized",
|
904
|
-
/** Forbidden */
|
905
|
-
Forbidden = "Forbidden",
|
906
|
-
/** NotFound */
|
907
|
-
NotFound = "NotFound",
|
908
|
-
/** ProjectNotFound */
|
909
|
-
ProjectNotFound = "ProjectNotFound",
|
910
|
-
/** OperationNotFound */
|
911
|
-
OperationNotFound = "OperationNotFound",
|
912
|
-
/** AzureCognitiveSearchNotFound */
|
913
|
-
AzureCognitiveSearchNotFound = "AzureCognitiveSearchNotFound",
|
914
|
-
/** AzureCognitiveSearchIndexNotFound */
|
915
|
-
AzureCognitiveSearchIndexNotFound = "AzureCognitiveSearchIndexNotFound",
|
916
|
-
/** TooManyRequests */
|
917
|
-
TooManyRequests = "TooManyRequests",
|
918
|
-
/** AzureCognitiveSearchThrottling */
|
919
|
-
AzureCognitiveSearchThrottling = "AzureCognitiveSearchThrottling",
|
920
|
-
/** AzureCognitiveSearchIndexLimitReached */
|
921
|
-
AzureCognitiveSearchIndexLimitReached = "AzureCognitiveSearchIndexLimitReached",
|
922
|
-
/** InternalServerError */
|
923
|
-
InternalServerError = "InternalServerError",
|
924
|
-
/** ServiceUnavailable */
|
925
|
-
ServiceUnavailable = "ServiceUnavailable",
|
926
|
-
/** Timeout */
|
927
|
-
Timeout = "Timeout",
|
928
|
-
/** QuotaExceeded */
|
929
|
-
QuotaExceeded = "QuotaExceeded",
|
930
|
-
/** Conflict */
|
931
|
-
Conflict = "Conflict",
|
932
|
-
/** Warning */
|
933
|
-
Warning = "Warning"
|
934
|
-
}
|
935
|
-
|
936
|
-
/** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
|
937
|
-
export declare enum KnownExtractiveSummarizationOrderingCriteria {
|
938
|
-
/** Indicates that results should be sorted in order of appearance in the text. */
|
939
|
-
Offset = "Offset",
|
940
|
-
/** Indicates that results should be sorted in order of importance (i.e. rank score) according to the model. */
|
941
|
-
Rank = "Rank"
|
942
|
-
}
|
943
|
-
|
944
|
-
/** Known values of {@link HealthcareEntityCategory} that the service accepts. */
|
945
|
-
export declare enum KnownHealthcareEntityCategory {
|
946
|
-
/** BodyStructure */
|
947
|
-
BodyStructure = "BodyStructure",
|
948
|
-
/** Age */
|
949
|
-
Age = "Age",
|
950
|
-
/** Gender */
|
951
|
-
Gender = "Gender",
|
952
|
-
/** Ethnicity */
|
953
|
-
Ethnicity = "Ethnicity",
|
954
|
-
/** ExaminationName */
|
955
|
-
ExaminationName = "ExaminationName",
|
956
|
-
/** Date */
|
957
|
-
Date = "Date",
|
958
|
-
/** Direction */
|
959
|
-
Direction = "Direction",
|
960
|
-
/** Frequency */
|
961
|
-
Frequency = "Frequency",
|
962
|
-
/** MeasurementValue */
|
963
|
-
MeasurementValue = "MeasurementValue",
|
964
|
-
/** MeasurementUnit */
|
965
|
-
MeasurementUnit = "MeasurementUnit",
|
966
|
-
/** RelationalOperator */
|
967
|
-
RelationalOperator = "RelationalOperator",
|
968
|
-
/** Time */
|
969
|
-
Time = "Time",
|
970
|
-
/** Course */
|
971
|
-
Course = "Course",
|
972
|
-
/** GeneOrProtein */
|
973
|
-
GeneOrProtein = "GeneOrProtein",
|
974
|
-
/** Variant */
|
975
|
-
Variant = "Variant",
|
976
|
-
/** Expression */
|
977
|
-
Expression = "Expression",
|
978
|
-
/** MutationType */
|
979
|
-
MutationType = "MutationType",
|
980
|
-
/** AdministrativeEvent */
|
981
|
-
AdministrativeEvent = "AdministrativeEvent",
|
982
|
-
/** CareEnvironment */
|
983
|
-
CareEnvironment = "CareEnvironment",
|
984
|
-
/** HealthcareProfession */
|
985
|
-
HealthcareProfession = "HealthcareProfession",
|
986
|
-
/** Diagnosis */
|
987
|
-
Diagnosis = "Diagnosis",
|
988
|
-
/** SymptomOrSign */
|
989
|
-
SymptomOrSign = "SymptomOrSign",
|
990
|
-
/** ConditionQualifier */
|
991
|
-
ConditionQualifier = "ConditionQualifier",
|
992
|
-
/** ConditionScale */
|
993
|
-
ConditionScale = "ConditionScale",
|
994
|
-
/** MedicationClass */
|
995
|
-
MedicationClass = "MedicationClass",
|
996
|
-
/** MedicationName */
|
997
|
-
MedicationName = "MedicationName",
|
998
|
-
/** Dosage */
|
999
|
-
Dosage = "Dosage",
|
1000
|
-
/** MedicationForm */
|
1001
|
-
MedicationForm = "MedicationForm",
|
1002
|
-
/** MedicationRoute */
|
1003
|
-
MedicationRoute = "MedicationRoute",
|
1004
|
-
/** FamilyRelation */
|
1005
|
-
FamilyRelation = "FamilyRelation",
|
1006
|
-
/** TreatmentName */
|
1007
|
-
TreatmentName = "TreatmentName",
|
1008
|
-
/** Allergen */
|
1009
|
-
Allergen = "Allergen",
|
1010
|
-
/** Employment */
|
1011
|
-
Employment = "Employment",
|
1012
|
-
/** LivingStatus */
|
1013
|
-
LivingStatus = "LivingStatus",
|
1014
|
-
/** SubstanceUse */
|
1015
|
-
SubstanceUse = "SubstanceUse",
|
1016
|
-
/** SubstanceUseAmount */
|
1017
|
-
SubstanceUseAmount = "SubstanceUseAmount"
|
1018
|
-
}
|
1019
|
-
|
1020
|
-
/** Known values of {@link InnerErrorCode} that the service accepts. */
|
1021
|
-
export declare enum KnownInnerErrorCode {
|
1022
|
-
/** InvalidRequest */
|
1023
|
-
InvalidRequest = "InvalidRequest",
|
1024
|
-
/** InvalidParameterValue */
|
1025
|
-
InvalidParameterValue = "InvalidParameterValue",
|
1026
|
-
/** KnowledgeBaseNotFound */
|
1027
|
-
KnowledgeBaseNotFound = "KnowledgeBaseNotFound",
|
1028
|
-
/** AzureCognitiveSearchNotFound */
|
1029
|
-
AzureCognitiveSearchNotFound = "AzureCognitiveSearchNotFound",
|
1030
|
-
/** AzureCognitiveSearchThrottling */
|
1031
|
-
AzureCognitiveSearchThrottling = "AzureCognitiveSearchThrottling",
|
1032
|
-
/** ExtractionFailure */
|
1033
|
-
ExtractionFailure = "ExtractionFailure",
|
1034
|
-
/** InvalidRequestBodyFormat */
|
1035
|
-
InvalidRequestBodyFormat = "InvalidRequestBodyFormat",
|
1036
|
-
/** EmptyRequest */
|
1037
|
-
EmptyRequest = "EmptyRequest",
|
1038
|
-
/** MissingInputDocuments */
|
1039
|
-
MissingInputDocuments = "MissingInputDocuments",
|
1040
|
-
/** InvalidDocument */
|
1041
|
-
InvalidDocument = "InvalidDocument",
|
1042
|
-
/** ModelVersionIncorrect */
|
1043
|
-
ModelVersionIncorrect = "ModelVersionIncorrect",
|
1044
|
-
/** InvalidDocumentBatch */
|
1045
|
-
InvalidDocumentBatch = "InvalidDocumentBatch",
|
1046
|
-
/** UnsupportedLanguageCode */
|
1047
|
-
UnsupportedLanguageCode = "UnsupportedLanguageCode",
|
1048
|
-
/** InvalidCountryHint */
|
1049
|
-
InvalidCountryHint = "InvalidCountryHint"
|
1050
|
-
}
|
1051
|
-
|
1052
|
-
/** Known values of {@link PiiEntityCategory} that the service accepts. */
|
1053
|
-
export declare enum KnownPiiEntityCategory {
|
1054
|
-
/** ABARoutingNumber */
|
1055
|
-
ABARoutingNumber = "ABARoutingNumber",
|
1056
|
-
/** ARNationalIdentityNumber */
|
1057
|
-
ARNationalIdentityNumber = "ARNationalIdentityNumber",
|
1058
|
-
/** AUBankAccountNumber */
|
1059
|
-
AUBankAccountNumber = "AUBankAccountNumber",
|
1060
|
-
/** AUDriversLicenseNumber */
|
1061
|
-
AUDriversLicenseNumber = "AUDriversLicenseNumber",
|
1062
|
-
/** AUMedicalAccountNumber */
|
1063
|
-
AUMedicalAccountNumber = "AUMedicalAccountNumber",
|
1064
|
-
/** AUPassportNumber */
|
1065
|
-
AUPassportNumber = "AUPassportNumber",
|
1066
|
-
/** AUTaxFileNumber */
|
1067
|
-
AUTaxFileNumber = "AUTaxFileNumber",
|
1068
|
-
/** AUBusinessNumber */
|
1069
|
-
AUBusinessNumber = "AUBusinessNumber",
|
1070
|
-
/** AUCompanyNumber */
|
1071
|
-
AUCompanyNumber = "AUCompanyNumber",
|
1072
|
-
/** ATIdentityCard */
|
1073
|
-
ATIdentityCard = "ATIdentityCard",
|
1074
|
-
/** ATTaxIdentificationNumber */
|
1075
|
-
ATTaxIdentificationNumber = "ATTaxIdentificationNumber",
|
1076
|
-
/** ATValueAddedTaxNumber */
|
1077
|
-
ATValueAddedTaxNumber = "ATValueAddedTaxNumber",
|
1078
|
-
/** AzureDocumentDBAuthKey */
|
1079
|
-
AzureDocumentDBAuthKey = "AzureDocumentDBAuthKey",
|
1080
|
-
/** AzureIaasDatabaseConnectionAndSQLString */
|
1081
|
-
AzureIaasDatabaseConnectionAndSQLString = "AzureIAASDatabaseConnectionAndSQLString",
|
1082
|
-
/** AzureIoTConnectionString */
|
1083
|
-
AzureIoTConnectionString = "AzureIoTConnectionString",
|
1084
|
-
/** AzurePublishSettingPassword */
|
1085
|
-
AzurePublishSettingPassword = "AzurePublishSettingPassword",
|
1086
|
-
/** AzureRedisCacheString */
|
1087
|
-
AzureRedisCacheString = "AzureRedisCacheString",
|
1088
|
-
/** AzureSAS */
|
1089
|
-
AzureSAS = "AzureSAS",
|
1090
|
-
/** AzureServiceBusString */
|
1091
|
-
AzureServiceBusString = "AzureServiceBusString",
|
1092
|
-
/** AzureStorageAccountKey */
|
1093
|
-
AzureStorageAccountKey = "AzureStorageAccountKey",
|
1094
|
-
/** AzureStorageAccountGeneric */
|
1095
|
-
AzureStorageAccountGeneric = "AzureStorageAccountGeneric",
|
1096
|
-
/** BENationalNumber */
|
1097
|
-
BENationalNumber = "BENationalNumber",
|
1098
|
-
/** BENationalNumberV2 */
|
1099
|
-
BENationalNumberV2 = "BENationalNumberV2",
|
1100
|
-
/** BEValueAddedTaxNumber */
|
1101
|
-
BEValueAddedTaxNumber = "BEValueAddedTaxNumber",
|
1102
|
-
/** BrcpfNumber */
|
1103
|
-
BrcpfNumber = "BRCPFNumber",
|
1104
|
-
/** BRLegalEntityNumber */
|
1105
|
-
BRLegalEntityNumber = "BRLegalEntityNumber",
|
1106
|
-
/** BRNationalIdrg */
|
1107
|
-
BRNationalIdrg = "BRNationalIDRG",
|
1108
|
-
/** BGUniformCivilNumber */
|
1109
|
-
BGUniformCivilNumber = "BGUniformCivilNumber",
|
1110
|
-
/** CABankAccountNumber */
|
1111
|
-
CABankAccountNumber = "CABankAccountNumber",
|
1112
|
-
/** CADriversLicenseNumber */
|
1113
|
-
CADriversLicenseNumber = "CADriversLicenseNumber",
|
1114
|
-
/** CAHealthServiceNumber */
|
1115
|
-
CAHealthServiceNumber = "CAHealthServiceNumber",
|
1116
|
-
/** CAPassportNumber */
|
1117
|
-
CAPassportNumber = "CAPassportNumber",
|
1118
|
-
/** CAPersonalHealthIdentification */
|
1119
|
-
CAPersonalHealthIdentification = "CAPersonalHealthIdentification",
|
1120
|
-
/** CASocialInsuranceNumber */
|
1121
|
-
CASocialInsuranceNumber = "CASocialInsuranceNumber",
|
1122
|
-
/** CLIdentityCardNumber */
|
1123
|
-
CLIdentityCardNumber = "CLIdentityCardNumber",
|
1124
|
-
/** CNResidentIdentityCardNumber */
|
1125
|
-
CNResidentIdentityCardNumber = "CNResidentIdentityCardNumber",
|
1126
|
-
/** CreditCardNumber */
|
1127
|
-
CreditCardNumber = "CreditCardNumber",
|
1128
|
-
/** HRIdentityCardNumber */
|
1129
|
-
HRIdentityCardNumber = "HRIdentityCardNumber",
|
1130
|
-
/** HRNationalIDNumber */
|
1131
|
-
HRNationalIDNumber = "HRNationalIDNumber",
|
1132
|
-
/** HRPersonalIdentificationNumber */
|
1133
|
-
HRPersonalIdentificationNumber = "HRPersonalIdentificationNumber",
|
1134
|
-
/** HRPersonalIdentificationOIBNumberV2 */
|
1135
|
-
HRPersonalIdentificationOIBNumberV2 = "HRPersonalIdentificationOIBNumberV2",
|
1136
|
-
/** CYIdentityCard */
|
1137
|
-
CYIdentityCard = "CYIdentityCard",
|
1138
|
-
/** CYTaxIdentificationNumber */
|
1139
|
-
CYTaxIdentificationNumber = "CYTaxIdentificationNumber",
|
1140
|
-
/** CZPersonalIdentityNumber */
|
1141
|
-
CZPersonalIdentityNumber = "CZPersonalIdentityNumber",
|
1142
|
-
/** CZPersonalIdentityV2 */
|
1143
|
-
CZPersonalIdentityV2 = "CZPersonalIdentityV2",
|
1144
|
-
/** DKPersonalIdentificationNumber */
|
1145
|
-
DKPersonalIdentificationNumber = "DKPersonalIdentificationNumber",
|
1146
|
-
/** DKPersonalIdentificationV2 */
|
1147
|
-
DKPersonalIdentificationV2 = "DKPersonalIdentificationV2",
|
1148
|
-
/** DrugEnforcementAgencyNumber */
|
1149
|
-
DrugEnforcementAgencyNumber = "DrugEnforcementAgencyNumber",
|
1150
|
-
/** EEPersonalIdentificationCode */
|
1151
|
-
EEPersonalIdentificationCode = "EEPersonalIdentificationCode",
|
1152
|
-
/** EUDebitCardNumber */
|
1153
|
-
EUDebitCardNumber = "EUDebitCardNumber",
|
1154
|
-
/** EUDriversLicenseNumber */
|
1155
|
-
EUDriversLicenseNumber = "EUDriversLicenseNumber",
|
1156
|
-
/** EugpsCoordinates */
|
1157
|
-
EugpsCoordinates = "EUGPSCoordinates",
|
1158
|
-
/** EUNationalIdentificationNumber */
|
1159
|
-
EUNationalIdentificationNumber = "EUNationalIdentificationNumber",
|
1160
|
-
/** EUPassportNumber */
|
1161
|
-
EUPassportNumber = "EUPassportNumber",
|
1162
|
-
/** EUSocialSecurityNumber */
|
1163
|
-
EUSocialSecurityNumber = "EUSocialSecurityNumber",
|
1164
|
-
/** EUTaxIdentificationNumber */
|
1165
|
-
EUTaxIdentificationNumber = "EUTaxIdentificationNumber",
|
1166
|
-
/** FIEuropeanHealthNumber */
|
1167
|
-
FIEuropeanHealthNumber = "FIEuropeanHealthNumber",
|
1168
|
-
/** FINationalID */
|
1169
|
-
FINationalID = "FINationalID",
|
1170
|
-
/** FINationalIDV2 */
|
1171
|
-
FINationalIDV2 = "FINationalIDV2",
|
1172
|
-
/** FIPassportNumber */
|
1173
|
-
FIPassportNumber = "FIPassportNumber",
|
1174
|
-
/** FRDriversLicenseNumber */
|
1175
|
-
FRDriversLicenseNumber = "FRDriversLicenseNumber",
|
1176
|
-
/** FRHealthInsuranceNumber */
|
1177
|
-
FRHealthInsuranceNumber = "FRHealthInsuranceNumber",
|
1178
|
-
/** FRNationalID */
|
1179
|
-
FRNationalID = "FRNationalID",
|
1180
|
-
/** FRPassportNumber */
|
1181
|
-
FRPassportNumber = "FRPassportNumber",
|
1182
|
-
/** FRSocialSecurityNumber */
|
1183
|
-
FRSocialSecurityNumber = "FRSocialSecurityNumber",
|
1184
|
-
/** FRTaxIdentificationNumber */
|
1185
|
-
FRTaxIdentificationNumber = "FRTaxIdentificationNumber",
|
1186
|
-
/** FRValueAddedTaxNumber */
|
1187
|
-
FRValueAddedTaxNumber = "FRValueAddedTaxNumber",
|
1188
|
-
/** DEDriversLicenseNumber */
|
1189
|
-
DEDriversLicenseNumber = "DEDriversLicenseNumber",
|
1190
|
-
/** DEPassportNumber */
|
1191
|
-
DEPassportNumber = "DEPassportNumber",
|
1192
|
-
/** DEIdentityCardNumber */
|
1193
|
-
DEIdentityCardNumber = "DEIdentityCardNumber",
|
1194
|
-
/** DETaxIdentificationNumber */
|
1195
|
-
DETaxIdentificationNumber = "DETaxIdentificationNumber",
|
1196
|
-
/** DEValueAddedNumber */
|
1197
|
-
DEValueAddedNumber = "DEValueAddedNumber",
|
1198
|
-
/** GRNationalIDCard */
|
1199
|
-
GRNationalIDCard = "GRNationalIDCard",
|
1200
|
-
/** GRNationalIDV2 */
|
1201
|
-
GRNationalIDV2 = "GRNationalIDV2",
|
1202
|
-
/** GRTaxIdentificationNumber */
|
1203
|
-
GRTaxIdentificationNumber = "GRTaxIdentificationNumber",
|
1204
|
-
/** HKIdentityCardNumber */
|
1205
|
-
HKIdentityCardNumber = "HKIdentityCardNumber",
|
1206
|
-
/** HUValueAddedNumber */
|
1207
|
-
HUValueAddedNumber = "HUValueAddedNumber",
|
1208
|
-
/** HUPersonalIdentificationNumber */
|
1209
|
-
HUPersonalIdentificationNumber = "HUPersonalIdentificationNumber",
|
1210
|
-
/** HUTaxIdentificationNumber */
|
1211
|
-
HUTaxIdentificationNumber = "HUTaxIdentificationNumber",
|
1212
|
-
/** INPermanentAccount */
|
1213
|
-
INPermanentAccount = "INPermanentAccount",
|
1214
|
-
/** INUniqueIdentificationNumber */
|
1215
|
-
INUniqueIdentificationNumber = "INUniqueIdentificationNumber",
|
1216
|
-
/** IDIdentityCardNumber */
|
1217
|
-
IDIdentityCardNumber = "IDIdentityCardNumber",
|
1218
|
-
/** InternationalBankingAccountNumber */
|
1219
|
-
InternationalBankingAccountNumber = "InternationalBankingAccountNumber",
|
1220
|
-
/** IEPersonalPublicServiceNumber */
|
1221
|
-
IEPersonalPublicServiceNumber = "IEPersonalPublicServiceNumber",
|
1222
|
-
/** IEPersonalPublicServiceNumberV2 */
|
1223
|
-
IEPersonalPublicServiceNumberV2 = "IEPersonalPublicServiceNumberV2",
|
1224
|
-
/** ILBankAccountNumber */
|
1225
|
-
ILBankAccountNumber = "ILBankAccountNumber",
|
1226
|
-
/** ILNationalID */
|
1227
|
-
ILNationalID = "ILNationalID",
|
1228
|
-
/** ITDriversLicenseNumber */
|
1229
|
-
ITDriversLicenseNumber = "ITDriversLicenseNumber",
|
1230
|
-
/** ITFiscalCode */
|
1231
|
-
ITFiscalCode = "ITFiscalCode",
|
1232
|
-
/** ITValueAddedTaxNumber */
|
1233
|
-
ITValueAddedTaxNumber = "ITValueAddedTaxNumber",
|
1234
|
-
/** JPBankAccountNumber */
|
1235
|
-
JPBankAccountNumber = "JPBankAccountNumber",
|
1236
|
-
/** JPDriversLicenseNumber */
|
1237
|
-
JPDriversLicenseNumber = "JPDriversLicenseNumber",
|
1238
|
-
/** JPPassportNumber */
|
1239
|
-
JPPassportNumber = "JPPassportNumber",
|
1240
|
-
/** JPResidentRegistrationNumber */
|
1241
|
-
JPResidentRegistrationNumber = "JPResidentRegistrationNumber",
|
1242
|
-
/** JPSocialInsuranceNumber */
|
1243
|
-
JPSocialInsuranceNumber = "JPSocialInsuranceNumber",
|
1244
|
-
/** JPMyNumberCorporate */
|
1245
|
-
JPMyNumberCorporate = "JPMyNumberCorporate",
|
1246
|
-
/** JPMyNumberPersonal */
|
1247
|
-
JPMyNumberPersonal = "JPMyNumberPersonal",
|
1248
|
-
/** JPResidenceCardNumber */
|
1249
|
-
JPResidenceCardNumber = "JPResidenceCardNumber",
|
1250
|
-
/** LVPersonalCode */
|
1251
|
-
LVPersonalCode = "LVPersonalCode",
|
1252
|
-
/** LTPersonalCode */
|
1253
|
-
LTPersonalCode = "LTPersonalCode",
|
1254
|
-
/** LUNationalIdentificationNumberNatural */
|
1255
|
-
LUNationalIdentificationNumberNatural = "LUNationalIdentificationNumberNatural",
|
1256
|
-
/** LUNationalIdentificationNumberNonNatural */
|
1257
|
-
LUNationalIdentificationNumberNonNatural = "LUNationalIdentificationNumberNonNatural",
|
1258
|
-
/** MYIdentityCardNumber */
|
1259
|
-
MYIdentityCardNumber = "MYIdentityCardNumber",
|
1260
|
-
/** MTIdentityCardNumber */
|
1261
|
-
MTIdentityCardNumber = "MTIdentityCardNumber",
|
1262
|
-
/** MTTaxIDNumber */
|
1263
|
-
MTTaxIDNumber = "MTTaxIDNumber",
|
1264
|
-
/** NLCitizensServiceNumber */
|
1265
|
-
NLCitizensServiceNumber = "NLCitizensServiceNumber",
|
1266
|
-
/** NLCitizensServiceNumberV2 */
|
1267
|
-
NLCitizensServiceNumberV2 = "NLCitizensServiceNumberV2",
|
1268
|
-
/** NLTaxIdentificationNumber */
|
1269
|
-
NLTaxIdentificationNumber = "NLTaxIdentificationNumber",
|
1270
|
-
/** NLValueAddedTaxNumber */
|
1271
|
-
NLValueAddedTaxNumber = "NLValueAddedTaxNumber",
|
1272
|
-
/** NZBankAccountNumber */
|
1273
|
-
NZBankAccountNumber = "NZBankAccountNumber",
|
1274
|
-
/** NZDriversLicenseNumber */
|
1275
|
-
NZDriversLicenseNumber = "NZDriversLicenseNumber",
|
1276
|
-
/** NZInlandRevenueNumber */
|
1277
|
-
NZInlandRevenueNumber = "NZInlandRevenueNumber",
|
1278
|
-
/** NZMinistryOfHealthNumber */
|
1279
|
-
NZMinistryOfHealthNumber = "NZMinistryOfHealthNumber",
|
1280
|
-
/** NZSocialWelfareNumber */
|
1281
|
-
NZSocialWelfareNumber = "NZSocialWelfareNumber",
|
1282
|
-
/** NOIdentityNumber */
|
1283
|
-
NOIdentityNumber = "NOIdentityNumber",
|
1284
|
-
/** PHUnifiedMultiPurposeIDNumber */
|
1285
|
-
PHUnifiedMultiPurposeIDNumber = "PHUnifiedMultiPurposeIDNumber",
|
1286
|
-
/** PLIdentityCard */
|
1287
|
-
PLIdentityCard = "PLIdentityCard",
|
1288
|
-
/** PLNationalID */
|
1289
|
-
PLNationalID = "PLNationalID",
|
1290
|
-
/** PLNationalIDV2 */
|
1291
|
-
PLNationalIDV2 = "PLNationalIDV2",
|
1292
|
-
/** PLPassportNumber */
|
1293
|
-
PLPassportNumber = "PLPassportNumber",
|
1294
|
-
/** PLTaxIdentificationNumber */
|
1295
|
-
PLTaxIdentificationNumber = "PLTaxIdentificationNumber",
|
1296
|
-
/** PlregonNumber */
|
1297
|
-
PlregonNumber = "PLREGONNumber",
|
1298
|
-
/** PTCitizenCardNumber */
|
1299
|
-
PTCitizenCardNumber = "PTCitizenCardNumber",
|
1300
|
-
/** PTCitizenCardNumberV2 */
|
1301
|
-
PTCitizenCardNumberV2 = "PTCitizenCardNumberV2",
|
1302
|
-
/** PTTaxIdentificationNumber */
|
1303
|
-
PTTaxIdentificationNumber = "PTTaxIdentificationNumber",
|
1304
|
-
/** ROPersonalNumericalCode */
|
1305
|
-
ROPersonalNumericalCode = "ROPersonalNumericalCode",
|
1306
|
-
/** RUPassportNumberDomestic */
|
1307
|
-
RUPassportNumberDomestic = "RUPassportNumberDomestic",
|
1308
|
-
/** RUPassportNumberInternational */
|
1309
|
-
RUPassportNumberInternational = "RUPassportNumberInternational",
|
1310
|
-
/** SANationalID */
|
1311
|
-
SANationalID = "SANationalID",
|
1312
|
-
/** SGNationalRegistrationIdentityCardNumber */
|
1313
|
-
SGNationalRegistrationIdentityCardNumber = "SGNationalRegistrationIdentityCardNumber",
|
1314
|
-
/** SKPersonalNumber */
|
1315
|
-
SKPersonalNumber = "SKPersonalNumber",
|
1316
|
-
/** SITaxIdentificationNumber */
|
1317
|
-
SITaxIdentificationNumber = "SITaxIdentificationNumber",
|
1318
|
-
/** SIUniqueMasterCitizenNumber */
|
1319
|
-
SIUniqueMasterCitizenNumber = "SIUniqueMasterCitizenNumber",
|
1320
|
-
/** ZAIdentificationNumber */
|
1321
|
-
ZAIdentificationNumber = "ZAIdentificationNumber",
|
1322
|
-
/** KRResidentRegistrationNumber */
|
1323
|
-
KRResidentRegistrationNumber = "KRResidentRegistrationNumber",
|
1324
|
-
/** Esdni */
|
1325
|
-
Esdni = "ESDNI",
|
1326
|
-
/** ESSocialSecurityNumber */
|
1327
|
-
ESSocialSecurityNumber = "ESSocialSecurityNumber",
|
1328
|
-
/** ESTaxIdentificationNumber */
|
1329
|
-
ESTaxIdentificationNumber = "ESTaxIdentificationNumber",
|
1330
|
-
/** SQLServerConnectionString */
|
1331
|
-
SQLServerConnectionString = "SQLServerConnectionString",
|
1332
|
-
/** SENationalID */
|
1333
|
-
SENationalID = "SENationalID",
|
1334
|
-
/** SENationalIDV2 */
|
1335
|
-
SENationalIDV2 = "SENationalIDV2",
|
1336
|
-
/** SEPassportNumber */
|
1337
|
-
SEPassportNumber = "SEPassportNumber",
|
1338
|
-
/** SETaxIdentificationNumber */
|
1339
|
-
SETaxIdentificationNumber = "SETaxIdentificationNumber",
|
1340
|
-
/** SwiftCode */
|
1341
|
-
SwiftCode = "SWIFTCode",
|
1342
|
-
/** CHSocialSecurityNumber */
|
1343
|
-
CHSocialSecurityNumber = "CHSocialSecurityNumber",
|
1344
|
-
/** TWNationalID */
|
1345
|
-
TWNationalID = "TWNationalID",
|
1346
|
-
/** TWPassportNumber */
|
1347
|
-
TWPassportNumber = "TWPassportNumber",
|
1348
|
-
/** TWResidentCertificate */
|
1349
|
-
TWResidentCertificate = "TWResidentCertificate",
|
1350
|
-
/** THPopulationIdentificationCode */
|
1351
|
-
THPopulationIdentificationCode = "THPopulationIdentificationCode",
|
1352
|
-
/** TRNationalIdentificationNumber */
|
1353
|
-
TRNationalIdentificationNumber = "TRNationalIdentificationNumber",
|
1354
|
-
/** UKDriversLicenseNumber */
|
1355
|
-
UKDriversLicenseNumber = "UKDriversLicenseNumber",
|
1356
|
-
/** UKElectoralRollNumber */
|
1357
|
-
UKElectoralRollNumber = "UKElectoralRollNumber",
|
1358
|
-
/** UKNationalHealthNumber */
|
1359
|
-
UKNationalHealthNumber = "UKNationalHealthNumber",
|
1360
|
-
/** UKNationalInsuranceNumber */
|
1361
|
-
UKNationalInsuranceNumber = "UKNationalInsuranceNumber",
|
1362
|
-
/** UKUniqueTaxpayerNumber */
|
1363
|
-
UKUniqueTaxpayerNumber = "UKUniqueTaxpayerNumber",
|
1364
|
-
/** UsukPassportNumber */
|
1365
|
-
UsukPassportNumber = "USUKPassportNumber",
|
1366
|
-
/** USBankAccountNumber */
|
1367
|
-
USBankAccountNumber = "USBankAccountNumber",
|
1368
|
-
/** USDriversLicenseNumber */
|
1369
|
-
USDriversLicenseNumber = "USDriversLicenseNumber",
|
1370
|
-
/** USIndividualTaxpayerIdentification */
|
1371
|
-
USIndividualTaxpayerIdentification = "USIndividualTaxpayerIdentification",
|
1372
|
-
/** USSocialSecurityNumber */
|
1373
|
-
USSocialSecurityNumber = "USSocialSecurityNumber",
|
1374
|
-
/** UAPassportNumberDomestic */
|
1375
|
-
UAPassportNumberDomestic = "UAPassportNumberDomestic",
|
1376
|
-
/** UAPassportNumberInternational */
|
1377
|
-
UAPassportNumberInternational = "UAPassportNumberInternational",
|
1378
|
-
/** Organization */
|
1379
|
-
Organization = "Organization",
|
1380
|
-
/** Email */
|
1381
|
-
Email = "Email",
|
1382
|
-
/** URL */
|
1383
|
-
URL = "URL",
|
1384
|
-
/** Age */
|
1385
|
-
Age = "Age",
|
1386
|
-
/** PhoneNumber */
|
1387
|
-
PhoneNumber = "PhoneNumber",
|
1388
|
-
/** IPAddress */
|
1389
|
-
IPAddress = "IPAddress",
|
1390
|
-
/** Date */
|
1391
|
-
Date = "Date",
|
1392
|
-
/** Person */
|
1393
|
-
Person = "Person",
|
1394
|
-
/** Address */
|
1395
|
-
Address = "Address",
|
1396
|
-
/** All */
|
1397
|
-
All = "All",
|
1398
|
-
/** Default */
|
1399
|
-
Default = "Default"
|
1400
|
-
}
|
1401
|
-
|
1402
|
-
/** Known values of {@link PiiEntityDomain} that the service accepts. */
|
1403
|
-
export declare enum KnownPiiEntityDomain {
|
1404
|
-
/** Indicates that entities in the Personal Health Information domain should be redacted. */
|
1405
|
-
Phi = "phi",
|
1406
|
-
/** Indicates that no domain is specified. */
|
1407
|
-
None = "none"
|
1408
|
-
}
|
1409
|
-
|
1410
|
-
/** Known values of {@link RelationType} that the service accepts. */
|
1411
|
-
export declare enum KnownRelationType {
|
1412
|
-
/** Abbreviation */
|
1413
|
-
Abbreviation = "Abbreviation",
|
1414
|
-
/** BodySiteOfCondition */
|
1415
|
-
BodySiteOfCondition = "BodySiteOfCondition",
|
1416
|
-
/** BodySiteOfTreatment */
|
1417
|
-
BodySiteOfTreatment = "BodySiteOfTreatment",
|
1418
|
-
/** CourseOfCondition */
|
1419
|
-
CourseOfCondition = "CourseOfCondition",
|
1420
|
-
/** CourseOfExamination */
|
1421
|
-
CourseOfExamination = "CourseOfExamination",
|
1422
|
-
/** CourseOfMedication */
|
1423
|
-
CourseOfMedication = "CourseOfMedication",
|
1424
|
-
/** CourseOfTreatment */
|
1425
|
-
CourseOfTreatment = "CourseOfTreatment",
|
1426
|
-
/** DirectionOfBodyStructure */
|
1427
|
-
DirectionOfBodyStructure = "DirectionOfBodyStructure",
|
1428
|
-
/** DirectionOfCondition */
|
1429
|
-
DirectionOfCondition = "DirectionOfCondition",
|
1430
|
-
/** DirectionOfExamination */
|
1431
|
-
DirectionOfExamination = "DirectionOfExamination",
|
1432
|
-
/** DirectionOfTreatment */
|
1433
|
-
DirectionOfTreatment = "DirectionOfTreatment",
|
1434
|
-
/** DosageOfMedication */
|
1435
|
-
DosageOfMedication = "DosageOfMedication",
|
1436
|
-
/** ExaminationFindsCondition */
|
1437
|
-
ExaminationFindsCondition = "ExaminationFindsCondition",
|
1438
|
-
/** ExpressionOfGene */
|
1439
|
-
ExpressionOfGene = "ExpressionOfGene",
|
1440
|
-
/** ExpressionOfVariant */
|
1441
|
-
ExpressionOfVariant = "ExpressionOfVariant",
|
1442
|
-
/** FormOfMedication */
|
1443
|
-
FormOfMedication = "FormOfMedication",
|
1444
|
-
/** FrequencyOfCondition */
|
1445
|
-
FrequencyOfCondition = "FrequencyOfCondition",
|
1446
|
-
/** FrequencyOfMedication */
|
1447
|
-
FrequencyOfMedication = "FrequencyOfMedication",
|
1448
|
-
/** FrequencyOfTreatment */
|
1449
|
-
FrequencyOfTreatment = "FrequencyOfTreatment",
|
1450
|
-
/** MutationTypeOfGene */
|
1451
|
-
MutationTypeOfGene = "MutationTypeOfGene",
|
1452
|
-
/** MutationTypeOfVariant */
|
1453
|
-
MutationTypeOfVariant = "MutationTypeOfVariant",
|
1454
|
-
/** QualifierOfCondition */
|
1455
|
-
QualifierOfCondition = "QualifierOfCondition",
|
1456
|
-
/** RelationOfExamination */
|
1457
|
-
RelationOfExamination = "RelationOfExamination",
|
1458
|
-
/** RouteOfMedication */
|
1459
|
-
RouteOfMedication = "RouteOfMedication",
|
1460
|
-
/** ScaleOfCondition */
|
1461
|
-
ScaleOfCondition = "ScaleOfCondition",
|
1462
|
-
/** TimeOfCondition */
|
1463
|
-
TimeOfCondition = "TimeOfCondition",
|
1464
|
-
/** TimeOfEvent */
|
1465
|
-
TimeOfEvent = "TimeOfEvent",
|
1466
|
-
/** TimeOfExamination */
|
1467
|
-
TimeOfExamination = "TimeOfExamination",
|
1468
|
-
/** TimeOfMedication */
|
1469
|
-
TimeOfMedication = "TimeOfMedication",
|
1470
|
-
/** TimeOfTreatment */
|
1471
|
-
TimeOfTreatment = "TimeOfTreatment",
|
1472
|
-
/** UnitOfCondition */
|
1473
|
-
UnitOfCondition = "UnitOfCondition",
|
1474
|
-
/** UnitOfExamination */
|
1475
|
-
UnitOfExamination = "UnitOfExamination",
|
1476
|
-
/** ValueOfCondition */
|
1477
|
-
ValueOfCondition = "ValueOfCondition",
|
1478
|
-
/** ValueOfExamination */
|
1479
|
-
ValueOfExamination = "ValueOfExamination",
|
1480
|
-
/** VariantOfGene */
|
1481
|
-
VariantOfGene = "VariantOfGene"
|
1482
|
-
}
|
1483
|
-
|
1484
|
-
/** Known values of {@link StringIndexType} that the service accepts. */
|
1485
|
-
export declare enum KnownStringIndexType {
|
1486
|
-
/** Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo. */
|
1487
|
-
TextElementsV8 = "TextElements_v8",
|
1488
|
-
/** Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python. */
|
1489
|
-
UnicodeCodePoint = "UnicodeCodePoint",
|
1490
|
-
/** Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript. */
|
1491
|
-
Utf16CodeUnit = "Utf16CodeUnit"
|
1492
|
-
}
|
1493
|
-
|
1494
|
-
/**
|
1495
|
-
* Enum of possible error codes of a {@link TextAnalysisError}.
|
1496
|
-
*/
|
1497
|
-
export declare const KnownTextAnalysisErrorCode: {
|
1498
|
-
InvalidRequest: KnownInnerErrorCode.InvalidRequest;
|
1499
|
-
InvalidParameterValue: KnownInnerErrorCode.InvalidParameterValue;
|
1500
|
-
KnowledgeBaseNotFound: KnownInnerErrorCode.KnowledgeBaseNotFound;
|
1501
|
-
AzureCognitiveSearchNotFound: KnownInnerErrorCode.AzureCognitiveSearchNotFound;
|
1502
|
-
AzureCognitiveSearchThrottling: KnownInnerErrorCode.AzureCognitiveSearchThrottling;
|
1503
|
-
ExtractionFailure: KnownInnerErrorCode.ExtractionFailure;
|
1504
|
-
InvalidRequestBodyFormat: KnownInnerErrorCode.InvalidRequestBodyFormat;
|
1505
|
-
EmptyRequest: KnownInnerErrorCode.EmptyRequest;
|
1506
|
-
MissingInputDocuments: KnownInnerErrorCode.MissingInputDocuments;
|
1507
|
-
InvalidDocument: KnownInnerErrorCode.InvalidDocument;
|
1508
|
-
ModelVersionIncorrect: KnownInnerErrorCode.ModelVersionIncorrect;
|
1509
|
-
InvalidDocumentBatch: KnownInnerErrorCode.InvalidDocumentBatch;
|
1510
|
-
UnsupportedLanguageCode: KnownInnerErrorCode.UnsupportedLanguageCode;
|
1511
|
-
InvalidCountryHint: KnownInnerErrorCode.InvalidCountryHint;
|
1512
|
-
InvalidArgument: KnownErrorCode.InvalidArgument;
|
1513
|
-
Unauthorized: KnownErrorCode.Unauthorized;
|
1514
|
-
Forbidden: KnownErrorCode.Forbidden;
|
1515
|
-
NotFound: KnownErrorCode.NotFound;
|
1516
|
-
ProjectNotFound: KnownErrorCode.ProjectNotFound;
|
1517
|
-
OperationNotFound: KnownErrorCode.OperationNotFound;
|
1518
|
-
AzureCognitiveSearchIndexNotFound: KnownErrorCode.AzureCognitiveSearchIndexNotFound;
|
1519
|
-
TooManyRequests: KnownErrorCode.TooManyRequests;
|
1520
|
-
AzureCognitiveSearchIndexLimitReached: KnownErrorCode.AzureCognitiveSearchIndexLimitReached;
|
1521
|
-
InternalServerError: KnownErrorCode.InternalServerError;
|
1522
|
-
ServiceUnavailable: KnownErrorCode.ServiceUnavailable;
|
1523
|
-
Timeout: KnownErrorCode.Timeout;
|
1524
|
-
QuotaExceeded: KnownErrorCode.QuotaExceeded;
|
1525
|
-
Conflict: KnownErrorCode.Conflict;
|
1526
|
-
Warning: KnownErrorCode.Warning;
|
1527
|
-
};
|
1528
|
-
|
1529
|
-
/** Options for a language detection action. */
|
1530
|
-
export declare interface LanguageDetectionAction extends ActionPrebuilt {
|
1531
|
-
}
|
1532
|
-
|
1533
|
-
/**
|
1534
|
-
* An error result from a language detection action on a single document.
|
1535
|
-
*/
|
1536
|
-
export declare type LanguageDetectionErrorResult = TextAnalysisErrorResult;
|
1537
|
-
|
1538
|
-
/** An input to the language detection operation. This object specifies a unique document id, as well as the full text of a document and a hint indicating the document's country of origin to assist the Language predictive model in detecting the document's language. */
|
1539
|
-
export declare interface LanguageDetectionInput {
|
1540
|
-
/** Unique, non-empty document identifier. */
|
1541
|
-
id: string;
|
1542
|
-
/** Full text of the input document. */
|
1543
|
-
text: string;
|
1544
|
-
/** A hint indicating the document's country of origin to assist the Language predictive model in detecting the document's language. */
|
1545
|
-
countryHint?: string;
|
1546
|
-
}
|
1547
|
-
|
1548
|
-
/**
|
1549
|
-
* The result of a language detection action on a single document.
|
1550
|
-
*/
|
1551
|
-
export declare type LanguageDetectionResult = LanguageDetectionSuccessResult | LanguageDetectionErrorResult;
|
1552
|
-
|
1553
|
-
/**
|
1554
|
-
* The result of a language detection action on a single document,
|
1555
|
-
* containing a prediction of what language the document is written in.
|
1556
|
-
*/
|
1557
|
-
export declare interface LanguageDetectionSuccessResult extends TextAnalysisSuccessResult {
|
1558
|
-
/**
|
1559
|
-
* The top detected language by confidence score.
|
1560
|
-
*/
|
1561
|
-
readonly primaryLanguage: DetectedLanguage;
|
1562
|
-
}
|
1563
|
-
|
1564
|
-
/** A word or phrase identified as a well-known entity within a database, including its formal (disambiguated) name and a link to the entity information within the source database. */
|
1565
|
-
export declare interface LinkedEntity {
|
1566
|
-
/** Entity Linking formal name. */
|
1567
|
-
name: string;
|
1568
|
-
/** List of instances this entity appears in the text. */
|
1569
|
-
matches: Match[];
|
1570
|
-
/** Language used in the data source. */
|
1571
|
-
language: string;
|
1572
|
-
/** Unique identifier of the recognized entity from the data source. */
|
1573
|
-
dataSourceEntityId?: string;
|
1574
|
-
/** URL for the entity's page from the data source. */
|
1575
|
-
url: string;
|
1576
|
-
/** Data source used to extract entity linking, such as Wiki/Bing etc. */
|
1577
|
-
dataSource: string;
|
1578
|
-
/** Bing Entity Search API unique identifier of the recognized entity. */
|
1579
|
-
bingEntitySearchApiId?: string;
|
1580
|
-
}
|
1581
|
-
|
1582
|
-
/** Details about the specific substring in a document that refers to a linked entity identified by the Language model. */
|
1583
|
-
export declare interface Match {
|
1584
|
-
/** If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned. */
|
1585
|
-
confidenceScore: number;
|
1586
|
-
/** Entity text as appears in the request. */
|
1587
|
-
text: string;
|
1588
|
-
/** Start position for the entity match text. */
|
1589
|
-
offset: number;
|
1590
|
-
/** Length for the entity match text. */
|
1591
|
-
length: number;
|
1592
|
-
}
|
1593
|
-
|
1594
|
-
/**
|
1595
|
-
* A mined opinion object represents an opinion we've extracted from a sentence.
|
1596
|
-
* It consists of both a target that these assessments are about, and the actual
|
1597
|
-
* assessments themselves.
|
1598
|
-
*/
|
1599
|
-
export declare interface Opinion {
|
1600
|
-
/**
|
1601
|
-
* The target of a product/service that this assessment is about.
|
1602
|
-
*/
|
1603
|
-
readonly target: TargetSentiment;
|
1604
|
-
/**
|
1605
|
-
* The actual assessments of the target.
|
1606
|
-
*/
|
1607
|
-
readonly assessments: AssessmentSentiment[];
|
1608
|
-
}
|
1609
|
-
|
1610
|
-
/**
|
1611
|
-
* Paged results of the {@link TextAnalysisClient.beginAnalyzeBatch} operation.
|
1612
|
-
*/
|
1613
|
-
export declare type PagedAnalyzeBatchResult = PagedAsyncIterableIterator<AnalyzeBatchResult>;
|
1614
|
-
|
1615
|
-
/**
|
1616
|
-
* Defines values for PiiEntityCategory. \
|
1617
|
-
* {@link KnownPiiEntityCategory} can be used interchangeably with PiiEntityCategory,
|
1618
|
-
* this enum contains the known values that the service supports.
|
1619
|
-
* ### Known values supported by the service
|
1620
|
-
* **ABARoutingNumber** \
|
1621
|
-
* **ARNationalIdentityNumber** \
|
1622
|
-
* **AUBankAccountNumber** \
|
1623
|
-
* **AUDriversLicenseNumber** \
|
1624
|
-
* **AUMedicalAccountNumber** \
|
1625
|
-
* **AUPassportNumber** \
|
1626
|
-
* **AUTaxFileNumber** \
|
1627
|
-
* **AUBusinessNumber** \
|
1628
|
-
* **AUCompanyNumber** \
|
1629
|
-
* **ATIdentityCard** \
|
1630
|
-
* **ATTaxIdentificationNumber** \
|
1631
|
-
* **ATValueAddedTaxNumber** \
|
1632
|
-
* **AzureDocumentDBAuthKey** \
|
1633
|
-
* **AzureIAASDatabaseConnectionAndSQLString** \
|
1634
|
-
* **AzureIoTConnectionString** \
|
1635
|
-
* **AzurePublishSettingPassword** \
|
1636
|
-
* **AzureRedisCacheString** \
|
1637
|
-
* **AzureSAS** \
|
1638
|
-
* **AzureServiceBusString** \
|
1639
|
-
* **AzureStorageAccountKey** \
|
1640
|
-
* **AzureStorageAccountGeneric** \
|
1641
|
-
* **BENationalNumber** \
|
1642
|
-
* **BENationalNumberV2** \
|
1643
|
-
* **BEValueAddedTaxNumber** \
|
1644
|
-
* **BRCPFNumber** \
|
1645
|
-
* **BRLegalEntityNumber** \
|
1646
|
-
* **BRNationalIDRG** \
|
1647
|
-
* **BGUniformCivilNumber** \
|
1648
|
-
* **CABankAccountNumber** \
|
1649
|
-
* **CADriversLicenseNumber** \
|
1650
|
-
* **CAHealthServiceNumber** \
|
1651
|
-
* **CAPassportNumber** \
|
1652
|
-
* **CAPersonalHealthIdentification** \
|
1653
|
-
* **CASocialInsuranceNumber** \
|
1654
|
-
* **CLIdentityCardNumber** \
|
1655
|
-
* **CNResidentIdentityCardNumber** \
|
1656
|
-
* **CreditCardNumber** \
|
1657
|
-
* **HRIdentityCardNumber** \
|
1658
|
-
* **HRNationalIDNumber** \
|
1659
|
-
* **HRPersonalIdentificationNumber** \
|
1660
|
-
* **HRPersonalIdentificationOIBNumberV2** \
|
1661
|
-
* **CYIdentityCard** \
|
1662
|
-
* **CYTaxIdentificationNumber** \
|
1663
|
-
* **CZPersonalIdentityNumber** \
|
1664
|
-
* **CZPersonalIdentityV2** \
|
1665
|
-
* **DKPersonalIdentificationNumber** \
|
1666
|
-
* **DKPersonalIdentificationV2** \
|
1667
|
-
* **DrugEnforcementAgencyNumber** \
|
1668
|
-
* **EEPersonalIdentificationCode** \
|
1669
|
-
* **EUDebitCardNumber** \
|
1670
|
-
* **EUDriversLicenseNumber** \
|
1671
|
-
* **EUGPSCoordinates** \
|
1672
|
-
* **EUNationalIdentificationNumber** \
|
1673
|
-
* **EUPassportNumber** \
|
1674
|
-
* **EUSocialSecurityNumber** \
|
1675
|
-
* **EUTaxIdentificationNumber** \
|
1676
|
-
* **FIEuropeanHealthNumber** \
|
1677
|
-
* **FINationalID** \
|
1678
|
-
* **FINationalIDV2** \
|
1679
|
-
* **FIPassportNumber** \
|
1680
|
-
* **FRDriversLicenseNumber** \
|
1681
|
-
* **FRHealthInsuranceNumber** \
|
1682
|
-
* **FRNationalID** \
|
1683
|
-
* **FRPassportNumber** \
|
1684
|
-
* **FRSocialSecurityNumber** \
|
1685
|
-
* **FRTaxIdentificationNumber** \
|
1686
|
-
* **FRValueAddedTaxNumber** \
|
1687
|
-
* **DEDriversLicenseNumber** \
|
1688
|
-
* **DEPassportNumber** \
|
1689
|
-
* **DEIdentityCardNumber** \
|
1690
|
-
* **DETaxIdentificationNumber** \
|
1691
|
-
* **DEValueAddedNumber** \
|
1692
|
-
* **GRNationalIDCard** \
|
1693
|
-
* **GRNationalIDV2** \
|
1694
|
-
* **GRTaxIdentificationNumber** \
|
1695
|
-
* **HKIdentityCardNumber** \
|
1696
|
-
* **HUValueAddedNumber** \
|
1697
|
-
* **HUPersonalIdentificationNumber** \
|
1698
|
-
* **HUTaxIdentificationNumber** \
|
1699
|
-
* **INPermanentAccount** \
|
1700
|
-
* **INUniqueIdentificationNumber** \
|
1701
|
-
* **IDIdentityCardNumber** \
|
1702
|
-
* **InternationalBankingAccountNumber** \
|
1703
|
-
* **IEPersonalPublicServiceNumber** \
|
1704
|
-
* **IEPersonalPublicServiceNumberV2** \
|
1705
|
-
* **ILBankAccountNumber** \
|
1706
|
-
* **ILNationalID** \
|
1707
|
-
* **ITDriversLicenseNumber** \
|
1708
|
-
* **ITFiscalCode** \
|
1709
|
-
* **ITValueAddedTaxNumber** \
|
1710
|
-
* **JPBankAccountNumber** \
|
1711
|
-
* **JPDriversLicenseNumber** \
|
1712
|
-
* **JPPassportNumber** \
|
1713
|
-
* **JPResidentRegistrationNumber** \
|
1714
|
-
* **JPSocialInsuranceNumber** \
|
1715
|
-
* **JPMyNumberCorporate** \
|
1716
|
-
* **JPMyNumberPersonal** \
|
1717
|
-
* **JPResidenceCardNumber** \
|
1718
|
-
* **LVPersonalCode** \
|
1719
|
-
* **LTPersonalCode** \
|
1720
|
-
* **LUNationalIdentificationNumberNatural** \
|
1721
|
-
* **LUNationalIdentificationNumberNonNatural** \
|
1722
|
-
* **MYIdentityCardNumber** \
|
1723
|
-
* **MTIdentityCardNumber** \
|
1724
|
-
* **MTTaxIDNumber** \
|
1725
|
-
* **NLCitizensServiceNumber** \
|
1726
|
-
* **NLCitizensServiceNumberV2** \
|
1727
|
-
* **NLTaxIdentificationNumber** \
|
1728
|
-
* **NLValueAddedTaxNumber** \
|
1729
|
-
* **NZBankAccountNumber** \
|
1730
|
-
* **NZDriversLicenseNumber** \
|
1731
|
-
* **NZInlandRevenueNumber** \
|
1732
|
-
* **NZMinistryOfHealthNumber** \
|
1733
|
-
* **NZSocialWelfareNumber** \
|
1734
|
-
* **NOIdentityNumber** \
|
1735
|
-
* **PHUnifiedMultiPurposeIDNumber** \
|
1736
|
-
* **PLIdentityCard** \
|
1737
|
-
* **PLNationalID** \
|
1738
|
-
* **PLNationalIDV2** \
|
1739
|
-
* **PLPassportNumber** \
|
1740
|
-
* **PLTaxIdentificationNumber** \
|
1741
|
-
* **PLREGONNumber** \
|
1742
|
-
* **PTCitizenCardNumber** \
|
1743
|
-
* **PTCitizenCardNumberV2** \
|
1744
|
-
* **PTTaxIdentificationNumber** \
|
1745
|
-
* **ROPersonalNumericalCode** \
|
1746
|
-
* **RUPassportNumberDomestic** \
|
1747
|
-
* **RUPassportNumberInternational** \
|
1748
|
-
* **SANationalID** \
|
1749
|
-
* **SGNationalRegistrationIdentityCardNumber** \
|
1750
|
-
* **SKPersonalNumber** \
|
1751
|
-
* **SITaxIdentificationNumber** \
|
1752
|
-
* **SIUniqueMasterCitizenNumber** \
|
1753
|
-
* **ZAIdentificationNumber** \
|
1754
|
-
* **KRResidentRegistrationNumber** \
|
1755
|
-
* **ESDNI** \
|
1756
|
-
* **ESSocialSecurityNumber** \
|
1757
|
-
* **ESTaxIdentificationNumber** \
|
1758
|
-
* **SQLServerConnectionString** \
|
1759
|
-
* **SENationalID** \
|
1760
|
-
* **SENationalIDV2** \
|
1761
|
-
* **SEPassportNumber** \
|
1762
|
-
* **SETaxIdentificationNumber** \
|
1763
|
-
* **SWIFTCode** \
|
1764
|
-
* **CHSocialSecurityNumber** \
|
1765
|
-
* **TWNationalID** \
|
1766
|
-
* **TWPassportNumber** \
|
1767
|
-
* **TWResidentCertificate** \
|
1768
|
-
* **THPopulationIdentificationCode** \
|
1769
|
-
* **TRNationalIdentificationNumber** \
|
1770
|
-
* **UKDriversLicenseNumber** \
|
1771
|
-
* **UKElectoralRollNumber** \
|
1772
|
-
* **UKNationalHealthNumber** \
|
1773
|
-
* **UKNationalInsuranceNumber** \
|
1774
|
-
* **UKUniqueTaxpayerNumber** \
|
1775
|
-
* **USUKPassportNumber** \
|
1776
|
-
* **USBankAccountNumber** \
|
1777
|
-
* **USDriversLicenseNumber** \
|
1778
|
-
* **USIndividualTaxpayerIdentification** \
|
1779
|
-
* **USSocialSecurityNumber** \
|
1780
|
-
* **UAPassportNumberDomestic** \
|
1781
|
-
* **UAPassportNumberInternational** \
|
1782
|
-
* **Organization** \
|
1783
|
-
* **Email** \
|
1784
|
-
* **URL** \
|
1785
|
-
* **Age** \
|
1786
|
-
* **PhoneNumber** \
|
1787
|
-
* **IPAddress** \
|
1788
|
-
* **Date** \
|
1789
|
-
* **Person** \
|
1790
|
-
* **Address** \
|
1791
|
-
* **All** \
|
1792
|
-
* **Default**
|
1793
|
-
*/
|
1794
|
-
export declare type PiiEntityCategory = string;
|
1795
|
-
|
1796
|
-
/**
|
1797
|
-
* Defines values for PiiEntityDomain. \
|
1798
|
-
* {@link KnownPiiEntityDomain} can be used interchangeably with PiiEntityDomain,
|
1799
|
-
* this enum contains the known values that the service supports.
|
1800
|
-
* ### Known values supported by the service
|
1801
|
-
* **phi**: Indicates that entities in the Personal Health Information domain should be redacted. \
|
1802
|
-
* **none**: Indicates that no domain is specified.
|
1803
|
-
*/
|
1804
|
-
export declare type PiiEntityDomain = string;
|
1805
|
-
|
1806
|
-
/** Options for a Pii entity recognition action. */
|
1807
|
-
export declare interface PiiEntityRecognitionAction extends ActionPrebuilt {
|
1808
|
-
/**
|
1809
|
-
* Filters entities to ones only included in the specified domain (e.g., if set to `Phi`, only entities in the Protected Healthcare Information domain will be returned). For a list of possible domains, see {@link KnownPiiEntityDomain}.
|
1810
|
-
*
|
1811
|
-
* See {@link https://aka.ms/tanerpii the service documentation} for more information.
|
1812
|
-
*/
|
1813
|
-
domainFilter?: PiiEntityDomain;
|
1814
|
-
/** Filters entities to ones only included in the specified array of categories. For a list of possible categories, see {@link KnownPiiCategory} */
|
1815
|
-
categoriesFilter?: PiiEntityCategory[];
|
1816
|
-
/**
|
1817
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
1818
|
-
*
|
1819
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
1820
|
-
*/
|
1821
|
-
stringIndexType?: StringIndexType;
|
1822
|
-
}
|
1823
|
-
|
1824
|
-
/** Options for a pii entity recognition batch action. */
|
1825
|
-
export declare interface PiiEntityRecognitionBatchAction extends AnalyzeBatchActionCommon, PiiEntityRecognitionAction {
|
1826
|
-
/**
|
1827
|
-
* The kind of the action.
|
1828
|
-
*/
|
1829
|
-
kind: "PiiEntityRecognition";
|
1830
|
-
}
|
1831
|
-
|
1832
|
-
/**
|
1833
|
-
* The result of a pii entity recognition batch action.
|
1834
|
-
*/
|
1835
|
-
export declare type PiiEntityRecognitionBatchResult = ActionMetadata & BatchActionResult<PiiEntityRecognitionResult, "PiiEntityRecognition">;
|
1836
|
-
|
1837
|
-
/**
|
1838
|
-
* An error result from a pii entity recognition action on a single document.
|
1839
|
-
*/
|
1840
|
-
export declare type PiiEntityRecognitionErrorResult = TextAnalysisErrorResult;
|
1841
|
-
|
1842
|
-
/**
|
1843
|
-
* The result of an entity recognition action on a single document.
|
1844
|
-
*/
|
1845
|
-
export declare type PiiEntityRecognitionResult = PiiEntityRecognitionSuccessResult | PiiEntityRecognitionErrorResult;
|
1846
|
-
|
1847
|
-
/**
|
1848
|
-
* The result of a pii entity recognition action on a single document,
|
1849
|
-
* containing the collection of {@link Entity} objects identified in that
|
1850
|
-
* document.
|
1851
|
-
*/
|
1852
|
-
export declare interface PiiEntityRecognitionSuccessResult extends TextAnalysisSuccessResult {
|
1853
|
-
/**
|
1854
|
-
* The collection of entities identified in the input document.
|
1855
|
-
*/
|
1856
|
-
readonly entities: Entity[];
|
1857
|
-
/**
|
1858
|
-
* The text redacted.
|
1859
|
-
*/
|
1860
|
-
readonly redactedText: string;
|
1861
|
-
}
|
1862
|
-
|
1863
|
-
/**
|
1864
|
-
* Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with.
|
1865
|
-
*/
|
1866
|
-
export declare interface PollerLike<TState extends OperationState<TResult>, TResult> extends SimplePollerLike<TState, TResult> {
|
1867
|
-
/**
|
1868
|
-
* sends a cancellation request.
|
1869
|
-
*/
|
1870
|
-
sendCancellationRequest: () => Promise<void>;
|
1871
|
-
}
|
1872
|
-
|
1873
|
-
/**
|
1874
|
-
* Defines values for RelationType. \
|
1875
|
-
* {@link KnownRelationType} can be used interchangeably with RelationType,
|
1876
|
-
* this enum contains the known values that the service supports.
|
1877
|
-
* ### Known values supported by the service
|
1878
|
-
* **Abbreviation** \
|
1879
|
-
* **BodySiteOfCondition** \
|
1880
|
-
* **BodySiteOfTreatment** \
|
1881
|
-
* **CourseOfCondition** \
|
1882
|
-
* **CourseOfExamination** \
|
1883
|
-
* **CourseOfMedication** \
|
1884
|
-
* **CourseOfTreatment** \
|
1885
|
-
* **DirectionOfBodyStructure** \
|
1886
|
-
* **DirectionOfCondition** \
|
1887
|
-
* **DirectionOfExamination** \
|
1888
|
-
* **DirectionOfTreatment** \
|
1889
|
-
* **DosageOfMedication** \
|
1890
|
-
* **ExaminationFindsCondition** \
|
1891
|
-
* **ExpressionOfGene** \
|
1892
|
-
* **ExpressionOfVariant** \
|
1893
|
-
* **FormOfMedication** \
|
1894
|
-
* **FrequencyOfCondition** \
|
1895
|
-
* **FrequencyOfMedication** \
|
1896
|
-
* **FrequencyOfTreatment** \
|
1897
|
-
* **MutationTypeOfGene** \
|
1898
|
-
* **MutationTypeOfVariant** \
|
1899
|
-
* **QualifierOfCondition** \
|
1900
|
-
* **RelationOfExamination** \
|
1901
|
-
* **RouteOfMedication** \
|
1902
|
-
* **ScaleOfCondition** \
|
1903
|
-
* **TimeOfCondition** \
|
1904
|
-
* **TimeOfEvent** \
|
1905
|
-
* **TimeOfExamination** \
|
1906
|
-
* **TimeOfMedication** \
|
1907
|
-
* **TimeOfTreatment** \
|
1908
|
-
* **UnitOfCondition** \
|
1909
|
-
* **UnitOfExamination** \
|
1910
|
-
* **ValueOfCondition** \
|
1911
|
-
* **ValueOfExamination** \
|
1912
|
-
* **VariantOfGene**
|
1913
|
-
*/
|
1914
|
-
export declare type RelationType = string;
|
1915
|
-
|
1916
|
-
/**
|
1917
|
-
* Options for the begin analyze actions operation.
|
1918
|
-
*/
|
1919
|
-
export declare interface RestoreAnalyzeBatchPollerOptions extends TextAnalysisOperationOptions {
|
1920
|
-
/**
|
1921
|
-
* Time delay between poll requests, in milliseconds.
|
1922
|
-
*/
|
1923
|
-
updateIntervalInMs?: number;
|
1924
|
-
}
|
1925
|
-
|
1926
|
-
/**
|
1927
|
-
* The predicted sentiment for a given span of text. For more information
|
1928
|
-
* regarding text sentiment, see {@link https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview}.
|
1929
|
-
*/
|
1930
|
-
export declare interface SentenceSentiment {
|
1931
|
-
/**
|
1932
|
-
* The sentence text.
|
1933
|
-
*/
|
1934
|
-
readonly text: string;
|
1935
|
-
/**
|
1936
|
-
* The predicted Sentiment for the sentence. For a list of possible values,
|
1937
|
-
* see {@link SentenceSentimentLabel}
|
1938
|
-
*/
|
1939
|
-
readonly sentiment: SentenceSentimentLabel;
|
1940
|
-
/**
|
1941
|
-
* The sentiment confidence score between 0 and 1 for the sentence for all
|
1942
|
-
* classes.
|
1943
|
-
*/
|
1944
|
-
readonly confidenceScores: SentimentConfidenceScores;
|
1945
|
-
/**
|
1946
|
-
* The sentence text offset from the start of the document.
|
1947
|
-
*/
|
1948
|
-
readonly offset: number;
|
1949
|
-
/**
|
1950
|
-
* The length of the sentence text.
|
1951
|
-
*/
|
1952
|
-
readonly length: number;
|
1953
|
-
/**
|
1954
|
-
* The list of opinions mined from this sentence. For example in "The food is
|
1955
|
-
* good, but the service is bad", the following two opinions will be returned:
|
1956
|
-
* "food is good" and "service is bad".
|
1957
|
-
*
|
1958
|
-
* It is non-empty only returned if {@link includeOpinionMining} was set to
|
1959
|
-
* `true`.
|
1960
|
-
*/
|
1961
|
-
readonly opinions: Opinion[];
|
1962
|
-
}
|
1963
|
-
|
1964
|
-
/** Defines values for SentenceSentimentLabel. */
|
1965
|
-
export declare type SentenceSentimentLabel = "positive" | "neutral" | "negative";
|
1966
|
-
|
1967
|
-
/** Options for a sentiment analysis action. */
|
1968
|
-
export declare interface SentimentAnalysisAction extends ActionPrebuilt {
|
1969
|
-
/** Enables performing opinion mining on the input documents, a more granular analysis around the aspects of a product or service (also known as aspect-based sentiment analysis). If set to true, {@link SentenceSentiment.opinions} will contain the results of this analysis. See {@link https://docs.microsoft.com/azure/cognitive-services/language-service/sentiment-opinion-mining/overview#opinion-mining the service documentation} for more information. */
|
1970
|
-
includeOpinionMining?: boolean;
|
1971
|
-
/**
|
1972
|
-
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
1973
|
-
*
|
1974
|
-
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
1975
|
-
*/
|
1976
|
-
stringIndexType?: StringIndexType;
|
1977
|
-
}
|
1978
|
-
|
1979
|
-
/** Options for a sentiment analysis batch action. */
|
1980
|
-
export declare interface SentimentAnalysisBatchAction extends AnalyzeBatchActionCommon, SentimentAnalysisAction {
|
1981
|
-
/**
|
1982
|
-
* The kind of the action.
|
1983
|
-
*/
|
1984
|
-
kind: "SentimentAnalysis";
|
1985
|
-
}
|
1986
|
-
|
1987
|
-
/**
|
1988
|
-
* The result of a sentiment analysis batch action.
|
1989
|
-
*/
|
1990
|
-
export declare type SentimentAnalysisBatchResult = ActionMetadata & BatchActionResult<SentimentAnalysisResult, "SentimentAnalysis">;
|
1991
|
-
|
1992
|
-
/**
|
1993
|
-
* An error result from a sentiment analysis action on a single document.
|
1994
|
-
*/
|
1995
|
-
export declare type SentimentAnalysisErrorResult = TextAnalysisErrorResult;
|
1996
|
-
|
1997
|
-
/**
|
1998
|
-
* The result of a sentiment analysis action on a single document.
|
1999
|
-
*/
|
2000
|
-
export declare type SentimentAnalysisResult = SentimentAnalysisSuccessResult | SentimentAnalysisErrorResult;
|
2001
|
-
|
2002
|
-
/**
|
2003
|
-
* The result of a sentiment analysis action on a single document,
|
2004
|
-
* containing the predicted sentiment for each sentence as well as for the full
|
2005
|
-
* document.
|
2006
|
-
*/
|
2007
|
-
export declare interface SentimentAnalysisSuccessResult extends TextAnalysisSuccessResult {
|
2008
|
-
/**
|
2009
|
-
* Predicted sentiment for document. For a list of possible values, see {@link DocumentSentimentLabel}
|
2010
|
-
*/
|
2011
|
-
readonly sentiment: DocumentSentimentLabel;
|
2012
|
-
/**
|
2013
|
-
* Document level sentiment confidence scores between 0 and 1 for each
|
2014
|
-
* sentiment class.
|
2015
|
-
*/
|
2016
|
-
readonly confidenceScores: SentimentConfidenceScores;
|
2017
|
-
/**
|
2018
|
-
* The predicted sentiment for each sentence in the corresponding document.
|
2019
|
-
*/
|
2020
|
-
readonly sentences: SentenceSentiment[];
|
2021
|
-
}
|
2022
|
-
|
2023
|
-
/** Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. */
|
2024
|
-
export declare interface SentimentConfidenceScores {
|
2025
|
-
/** Confidence score for positive sentiment */
|
2026
|
-
positive: number;
|
2027
|
-
/** Confidence score for neutral sentiment */
|
2028
|
-
neutral: number;
|
2029
|
-
/** Confidence score for negative sentiment */
|
2030
|
-
negative: number;
|
2031
|
-
}
|
2032
|
-
|
2033
|
-
/**
|
2034
|
-
* Defines values for StringIndexType. \
|
2035
|
-
* {@link KnownStringIndexType} can be used interchangeably with StringIndexType,
|
2036
|
-
* this enum contains the known values that the service supports.
|
2037
|
-
* ### Known values supported by the service
|
2038
|
-
* **TextElements_v8**: Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo. \
|
2039
|
-
* **UnicodeCodePoint**: Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python. \
|
2040
|
-
* **Utf16CodeUnit**: Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript.
|
2041
|
-
*/
|
2042
|
-
export declare type StringIndexType = string;
|
2043
|
-
|
2044
|
-
/** The context of the summary. */
|
2045
|
-
export declare interface SummaryContext {
|
2046
|
-
/** Start position for the context. Use of different 'stringIndexType' values can affect the offset returned. */
|
2047
|
-
offset: number;
|
2048
|
-
/** The length of the context. Use of different 'stringIndexType' values can affect the length returned. */
|
2049
|
-
length: number;
|
2050
|
-
}
|
2051
|
-
|
2052
|
-
/** A sentence that is part of the extracted summary. */
|
2053
|
-
export declare interface SummarySentence {
|
2054
|
-
/** The extracted sentence text. */
|
2055
|
-
text: string;
|
2056
|
-
/** A double value representing the relevance of the sentence within the summary. Higher values indicate higher importance. */
|
2057
|
-
rankScore: number;
|
2058
|
-
/** The sentence offset from the start of the document, based on the value of the parameter StringIndexType. */
|
2059
|
-
offset: number;
|
2060
|
-
/** The length of the sentence. */
|
2061
|
-
length: number;
|
2062
|
-
}
|
2063
|
-
|
2064
|
-
/** Represents the confidence scores across all sentiment classes: positive and negative. */
|
2065
|
-
export declare interface TargetConfidenceScores {
|
2066
|
-
/** Confidence score for positive sentiment */
|
2067
|
-
positive: number;
|
2068
|
-
/** Confidence score for negative sentiment */
|
2069
|
-
negative: number;
|
2070
|
-
}
|
2071
|
-
|
2072
|
-
/**
|
2073
|
-
* TargetSentiment contains the predicted sentiment, confidence scores and other
|
2074
|
-
* information about a target of a product. A target of a product/service is a
|
2075
|
-
* key component of that product/service. For example in "The food at Hotel Foo
|
2076
|
-
* is good", "food" is a target of "Hotel Foo".
|
2077
|
-
*/
|
2078
|
-
export declare interface TargetSentiment {
|
2079
|
-
/**
|
2080
|
-
* The sentiment confidence score between 0 and 1 for the target for
|
2081
|
-
* 'positive' and 'negative' labels.
|
2082
|
-
*/
|
2083
|
-
readonly confidenceScores: TargetConfidenceScores;
|
2084
|
-
/**
|
2085
|
-
* The predicted Sentiment for the Target. For a list of possible values,
|
2086
|
-
* see {@link TokenSentimentLabel}
|
2087
|
-
*/
|
2088
|
-
readonly sentiment: TokenSentimentLabel;
|
2089
|
-
/**
|
2090
|
-
* The target text.
|
2091
|
-
*/
|
2092
|
-
readonly text: string;
|
2093
|
-
/**
|
2094
|
-
* The Target text offset from the start of the sentence.
|
2095
|
-
*/
|
2096
|
-
readonly offset: number;
|
2097
|
-
/**
|
2098
|
-
* The length of the Target text.
|
2099
|
-
*/
|
2100
|
-
readonly length: number;
|
2101
|
-
}
|
2102
|
-
|
2103
|
-
/**
|
2104
|
-
* A client for interacting with the text analysis features in Azure Cognitive
|
2105
|
-
* Language Service.
|
2106
|
-
*
|
2107
|
-
* The client needs the endpoint of a Language resource and an authentication
|
2108
|
-
* method such as an API key or AAD. The API key and endpoint can be found in
|
2109
|
-
* the Language resource page in the Azure portal. They will be located in the
|
2110
|
-
* resource's Keys and Endpoint page, under Resource Management.
|
2111
|
-
*
|
2112
|
-
* ### Examples for authentication:
|
2113
|
-
*
|
2114
|
-
* #### API Key
|
2115
|
-
*
|
2116
|
-
* ```js
|
2117
|
-
* import { TextAnalysisClient, AzureKeyCredential } from "@azure/ai-language-text";
|
2118
|
-
*
|
2119
|
-
* const endpoint = "https://<resource name>.cognitiveservices.azure.com";
|
2120
|
-
* const credential = new AzureKeyCredential("<api key>");
|
2121
|
-
*
|
2122
|
-
* const client = new TextAnalysisClient(endpoint, credential);
|
2123
|
-
* ```
|
2124
|
-
*
|
2125
|
-
* #### Azure Active Directory
|
2126
|
-
*
|
2127
|
-
* See the [`@azure/identity`](https://npmjs.com/package/\@azure/identity)
|
2128
|
-
* package for more information about authenticating with Azure Active Directory.
|
2129
|
-
*
|
2130
|
-
* ```js
|
2131
|
-
* import { TextAnalysisClient } from "@azure/ai-language-text";
|
2132
|
-
* import { DefaultAzureCredential } from "@azure/identity";
|
2133
|
-
*
|
2134
|
-
* const endpoint = "https://<resource name>.cognitiveservices.azure.com";
|
2135
|
-
* const credential = new DefaultAzureCredential();
|
2136
|
-
*
|
2137
|
-
* const client = new TextAnalysisClient(endpoint, credential);
|
2138
|
-
* ```
|
2139
|
-
*/
|
2140
|
-
export declare class TextAnalysisClient {
|
2141
|
-
private readonly _client;
|
2142
|
-
private readonly _tracing;
|
2143
|
-
private readonly defaultCountryHint;
|
2144
|
-
private readonly defaultLanguage;
|
2145
|
-
/**
|
2146
|
-
* Creates an instance of TextAnalysisClient with the endpoint of a Language
|
2147
|
-
* resource and an authentication method such as an API key or AAD.
|
2148
|
-
*
|
2149
|
-
* The API key and endpoint can be found in the Language resource page in the
|
2150
|
-
* Azure portal. They will be located in the resource's Keys and Endpoint page,
|
2151
|
-
* under Resource Management.
|
2152
|
-
*
|
2153
|
-
* ### Example
|
2154
|
-
*
|
2155
|
-
* ```js
|
2156
|
-
* import { TextAnalysisClient, AzureKeyCredential } from "@azure/ai-language-text";
|
2157
|
-
*
|
2158
|
-
* const endpoint = "https://<resource name>.cognitiveservices.azure.com";
|
2159
|
-
* const credential = new AzureKeyCredential("<api key>");
|
2160
|
-
*
|
2161
|
-
* const client = new TextAnalysisClient(endpoint, credential);
|
2162
|
-
* ```
|
2163
|
-
*
|
2164
|
-
* @param endpointUrl - The URL to the endpoint of a Cognitive Language Service resource
|
2165
|
-
* @param credential - Key credential to be used to authenticate requests to the service.
|
2166
|
-
* @param options - Used to configure the TextAnalytics client.
|
2167
|
-
*/
|
2168
|
-
constructor(endpointUrl: string, credential: KeyCredential, options?: TextAnalysisClientOptions);
|
2169
|
-
/**
|
2170
|
-
* Creates an instance of TextAnalysisClient with the endpoint of a Language
|
2171
|
-
* resource and an authentication method such as an API key or AAD.
|
2172
|
-
*
|
2173
|
-
* The API key and endpoint can be found in the Language resource page in the
|
2174
|
-
* Azure portal. They will be located in the resource's Keys and Endpoint page,
|
2175
|
-
* under Resource Management.
|
2176
|
-
*
|
2177
|
-
* ### Example
|
2178
|
-
*
|
2179
|
-
* See the [`@azure/identity`](https://npmjs.com/package/\@azure/identity)
|
2180
|
-
* package for more information about authenticating with Azure Active Directory.
|
2181
|
-
*
|
2182
|
-
* ```js
|
2183
|
-
* import { TextAnalysisClient } from "@azure/ai-language-text";
|
2184
|
-
* import { DefaultAzureCredential } from "@azure/identity";
|
2185
|
-
*
|
2186
|
-
* const endpoint = "https://<resource name>.cognitiveservices.azure.com";
|
2187
|
-
* const credential = new DefaultAzureCredential();
|
2188
|
-
*
|
2189
|
-
* const client = new TextAnalysisClient(endpoint, credential);
|
2190
|
-
* ```
|
2191
|
-
*
|
2192
|
-
* @param endpointUrl - The URL to the endpoint of a Cognitive Language Service resource
|
2193
|
-
* @param credential - Token credential to be used to authenticate requests to the service.
|
2194
|
-
* @param options - Used to configure the TextAnalytics client.
|
2195
|
-
*/
|
2196
|
-
constructor(endpointUrl: string, credential: TokenCredential, options?: TextAnalysisClientOptions);
|
2197
|
-
/**
|
2198
|
-
* Runs a predictive model to determine the language that the passed-in
|
2199
|
-
* input strings are written in, and returns, for each one, the detected
|
2200
|
-
* language as well as a score indicating the model's confidence that the
|
2201
|
-
* inferred language is correct. Scores close to 1 indicate high certainty in
|
2202
|
-
* the result. 120 languages are supported.
|
2203
|
-
*
|
2204
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2205
|
-
* for data limits.
|
2206
|
-
*
|
2207
|
-
* ### Examples
|
2208
|
-
*
|
2209
|
-
* #### Language detection
|
2210
|
-
*
|
2211
|
-
* ```js
|
2212
|
-
* const documents = [<input strings>];
|
2213
|
-
* const countryHint = "us";
|
2214
|
-
* const results = await client.analyze("LanguageDetection", documents, countryHint);
|
2215
|
-
*
|
2216
|
-
* for (let i = 0; i < results.length; i++) {
|
2217
|
-
* const result = results[i];
|
2218
|
-
* if (result.error) {
|
2219
|
-
* // a document has an error instead of results
|
2220
|
-
* } else {
|
2221
|
-
* const { name, confidenceScore, iso6391Name } = result.primaryLanguage;
|
2222
|
-
* }
|
2223
|
-
* }
|
2224
|
-
* ```
|
2225
|
-
*
|
2226
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/language-detection/overview}
|
2227
|
-
* for more information on language detection.
|
2228
|
-
*
|
2229
|
-
* @param actionName - the name of the action to be performed on the input
|
2230
|
-
* documents, see ${@link AnalyzeActionName}
|
2231
|
-
* @param documents - the input documents to be analyzed
|
2232
|
-
* @param options - optional action parameters and settings for the operation
|
2233
|
-
*
|
2234
|
-
* @returns an array of results where each element contains the primary language
|
2235
|
-
* for the corresponding input document.
|
2236
|
-
*/
|
2237
|
-
analyze<ActionName extends "LanguageDetection">(actionName: ActionName, documents: LanguageDetectionInput[], options?: AnalyzeActionParameters<ActionName> & TextAnalysisOperationOptions): Promise<AnalyzeResult<ActionName>>;
|
2238
|
-
/**
|
2239
|
-
* Runs a predictive model to determine the language that the passed-in
|
2240
|
-
* input strings are written in, and returns, for each one, the detected
|
2241
|
-
* language as well as a score indicating the model's confidence that the
|
2242
|
-
* inferred language is correct. Scores close to 1 indicate high certainty in
|
2243
|
-
* the result. 120 languages are supported.
|
2244
|
-
*
|
2245
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2246
|
-
* for data limits.
|
2247
|
-
*
|
2248
|
-
* ### Examples
|
2249
|
-
*
|
2250
|
-
* #### Language detection
|
2251
|
-
*
|
2252
|
-
* ```js
|
2253
|
-
* const documents = [<input strings>];
|
2254
|
-
* const countryHint = "us";
|
2255
|
-
* const results = await client.analyze("LanguageDetection", documents, countryHint);
|
2256
|
-
*
|
2257
|
-
* for (const result of results) {
|
2258
|
-
* if (result.error) {
|
2259
|
-
* // a document has an error instead of results
|
2260
|
-
* } else {
|
2261
|
-
* const { name, confidenceScore, iso6391Name } = result.primaryLanguage;
|
2262
|
-
* }
|
2263
|
-
* }
|
2264
|
-
* ```
|
2265
|
-
*
|
2266
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/language-detection/overview}
|
2267
|
-
* for more information on language detection.
|
2268
|
-
*
|
2269
|
-
* @param actionName - the name of the action to be performed on the input
|
2270
|
-
* documents, see ${@link AnalyzeActionName}
|
2271
|
-
* @param documents - the input documents to be analyzed
|
2272
|
-
* @param countryHint - Indicates the country of origin for all of
|
2273
|
-
* the input strings to assist the model in predicting the language they are
|
2274
|
-
* written in. If unspecified, this value will be set to the default
|
2275
|
-
* country hint in `TextAnalysisClientOptions`. If set to an empty string,
|
2276
|
-
* or the string "none", the service will apply a model where the country is
|
2277
|
-
* explicitly unset. The same country hint is applied to all strings in the
|
2278
|
-
* input collection.
|
2279
|
-
* @param options - optional action parameters and settings for the operation
|
2280
|
-
*
|
2281
|
-
* @returns an array of results where each element contains the primary language
|
2282
|
-
* for the corresponding input document.
|
2283
|
-
*/
|
2284
|
-
analyze<ActionName extends "LanguageDetection">(actionName: ActionName, documents: string[], countryHint?: string, options?: AnalyzeActionParameters<ActionName> & TextAnalysisOperationOptions): Promise<AnalyzeResult<ActionName>>;
|
2285
|
-
/**
|
2286
|
-
* Runs a predictive model to perform the action of choice on the input
|
2287
|
-
* documents. See ${@link AnalyzeActionName} for a list of supported
|
2288
|
-
* actions.
|
2289
|
-
*
|
2290
|
-
* The layout of each item in the results array depends on the action chosen.
|
2291
|
-
* For example, each PIIEntityRecognition document result consists of both
|
2292
|
-
* `entities` and `redactedText` where the former is a list of all Pii entities
|
2293
|
-
* in the text and the latter is the original text after all such Pii entities
|
2294
|
-
* have been redacted from it.
|
2295
|
-
*
|
2296
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2297
|
-
* for data limits.
|
2298
|
-
*
|
2299
|
-
* ### Examples
|
2300
|
-
*
|
2301
|
-
* #### Opinion mining
|
2302
|
-
*
|
2303
|
-
* ```js
|
2304
|
-
* const documents = [{
|
2305
|
-
* id: "1",
|
2306
|
-
* text: "The food and service aren't the best",
|
2307
|
-
* language: "en"
|
2308
|
-
* }];
|
2309
|
-
* const results = await client.analyze("SentimentAnalysis", documents, {
|
2310
|
-
* includeOpinionMining: true,
|
2311
|
-
* });
|
2312
|
-
*
|
2313
|
-
* for (const result of results) {
|
2314
|
-
* if (result.error) {
|
2315
|
-
* // a document has an error instead of results
|
2316
|
-
* } else {
|
2317
|
-
* const { sentiment, confidenceScores, sentences } = result;
|
2318
|
-
* for (const { sentiment, confidenceScores, opinions } of sentences) {
|
2319
|
-
* for (const { target, assessments } of opinions) {
|
2320
|
-
* const { text, sentiment, confidenceScores } = target;
|
2321
|
-
* for (const { text, sentiment } of assessments) {
|
2322
|
-
* // Do something
|
2323
|
-
* }
|
2324
|
-
* }
|
2325
|
-
* }
|
2326
|
-
* }
|
2327
|
-
* }
|
2328
|
-
* ```
|
2329
|
-
*
|
2330
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview}
|
2331
|
-
* for more information on opinion mining.
|
2332
|
-
*
|
2333
|
-
* #### Personally identifiable information
|
2334
|
-
*
|
2335
|
-
* ```js
|
2336
|
-
* const documents = [<input documents>];
|
2337
|
-
* const categoriesFilter = [KnownPiiCategory.USSocialSecurityNumber];
|
2338
|
-
* const domainFilter = KnownPiiDomain.Phi;
|
2339
|
-
* const results = await client.analyze("PiiEntityRecognition", documents, {
|
2340
|
-
* domainFilter, categoriesFilter
|
2341
|
-
* });
|
2342
|
-
*
|
2343
|
-
* for (const result of results) {
|
2344
|
-
* if (result.error) {
|
2345
|
-
* // a document has an error instead of results
|
2346
|
-
* } else {
|
2347
|
-
* const { entities, redactedText } = result;
|
2348
|
-
* for (const { text, category, confidenceScore, length, offset } of entities) {
|
2349
|
-
* // Do something
|
2350
|
-
* }
|
2351
|
-
* }
|
2352
|
-
* }
|
2353
|
-
* ```
|
2354
|
-
*
|
2355
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/personally-identifiable-information/overview}
|
2356
|
-
* for more information on personally identifiable information.
|
2357
|
-
*
|
2358
|
-
* @param actionName - the name of the action to be performed on the input
|
2359
|
-
* documents, see ${@link AnalyzeActionName}
|
2360
|
-
* @param documents - the input documents to be analyzed
|
2361
|
-
* @param options - optional action parameters and settings for the operation
|
2362
|
-
*
|
2363
|
-
* @returns an array of results corresponding to the input documents
|
2364
|
-
*/
|
2365
|
-
analyze<ActionName extends AnalyzeActionName = AnalyzeActionName>(actionName: ActionName, documents: TextDocumentInput[], options?: AnalyzeActionParameters<ActionName> & TextAnalysisOperationOptions): Promise<AnalyzeResult<ActionName>>;
|
2366
|
-
/**
|
2367
|
-
* Runs a predictive model to perform the action of choice on the input
|
2368
|
-
* strings. See ${@link AnalyzeActionName} for a list of supported
|
2369
|
-
* actions.
|
2370
|
-
*
|
2371
|
-
* The layout of each item in the results array depends on the action chosen.
|
2372
|
-
* For example, each PIIEntityRecognition document result consists of both
|
2373
|
-
* `entities` and `redactedText` where the former is a list of all Pii entities
|
2374
|
-
* in the text and the latter is the original text after all such Pii entities
|
2375
|
-
* have been redacted from it.
|
2376
|
-
*
|
2377
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2378
|
-
* for data limits.
|
2379
|
-
*
|
2380
|
-
* ### Examples
|
2381
|
-
*
|
2382
|
-
* #### Opinion mining
|
2383
|
-
*
|
2384
|
-
* ```js
|
2385
|
-
* const documents = ["The food and service aren't the best"];
|
2386
|
-
* const results = await client.analyze("SentimentAnalysis", documents, {
|
2387
|
-
* includeOpinionMining: true,
|
2388
|
-
* });
|
2389
|
-
*
|
2390
|
-
* for (const result of results) {
|
2391
|
-
* if (result.error) {
|
2392
|
-
* // a document has an error instead of results
|
2393
|
-
* } else {
|
2394
|
-
* const { sentiment, confidenceScores, sentences } = result;
|
2395
|
-
* for (const { sentiment, confidenceScores, opinions } of sentences) {
|
2396
|
-
* for (const { target, assessments } of opinions) {
|
2397
|
-
* const { text, sentiment, confidenceScores } = target;
|
2398
|
-
* for (const { text, sentiment } of assessments) {
|
2399
|
-
* // Do something
|
2400
|
-
* }
|
2401
|
-
* }
|
2402
|
-
* }
|
2403
|
-
* }
|
2404
|
-
* }
|
2405
|
-
* ```
|
2406
|
-
*
|
2407
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview}
|
2408
|
-
* for more information on opinion mining.
|
2409
|
-
*
|
2410
|
-
* #### Personally identifiable information
|
2411
|
-
*
|
2412
|
-
* ```js
|
2413
|
-
* const documents = [<input strings>];
|
2414
|
-
* const languageCode = "en";
|
2415
|
-
* const categoriesFilter = [KnownPiiCategory.USSocialSecurityNumber];
|
2416
|
-
* const domainFilter = KnownPiiDomain.Phi;
|
2417
|
-
* const results = await client.analyze("PiiEntityRecognition", documents, languageCode, {
|
2418
|
-
* domainFilter, categoriesFilter
|
2419
|
-
* });
|
2420
|
-
*
|
2421
|
-
* for (const result of results) {
|
2422
|
-
* if (result.error) {
|
2423
|
-
* // a document has an error instead of results
|
2424
|
-
* } else {
|
2425
|
-
* const { entities, redactedText } = result;
|
2426
|
-
* for (const { text, category, confidenceScore, length, offset } of entities) {
|
2427
|
-
* // Do something
|
2428
|
-
* }
|
2429
|
-
* }
|
2430
|
-
* }
|
2431
|
-
* ```
|
2432
|
-
*
|
2433
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/personally-identifiable-information/overview}
|
2434
|
-
* for more information on personally identifiable information.
|
2435
|
-
*
|
2436
|
-
* @param actionName - the name of the action to be performed on the input
|
2437
|
-
* documents, see ${@link AnalyzeActionName}
|
2438
|
-
* @param documents - the input documents to be analyzed
|
2439
|
-
* @param languageCode - the code of the language that all the input strings are
|
2440
|
-
* written in. If unspecified, this value will be set to the default
|
2441
|
-
* language in `TextAnalysisClientOptions`. If set to an empty string,
|
2442
|
-
* the service will apply a model where the language is explicitly set to
|
2443
|
-
* "None". Language support varies per action, for example, more information
|
2444
|
-
* about the languages supported for Entity Recognition actions can be
|
2445
|
-
* found in {@link https://docs.microsoft.com//azure/cognitive-services/language-service/named-entity-recognition/language-support}.
|
2446
|
-
* If set to "auto", the service will automatically infer the language from
|
2447
|
-
* the input text.
|
2448
|
-
* @param options - optional action parameters and settings for the operation
|
2449
|
-
*
|
2450
|
-
* @returns an array of results corresponding to the input documents
|
2451
|
-
*/
|
2452
|
-
analyze<ActionName extends AnalyzeActionName = AnalyzeActionName>(actionName: ActionName, documents: string[], languageCode?: string, options?: AnalyzeActionParameters<ActionName> & TextAnalysisOperationOptions): Promise<AnalyzeResult<ActionName>>;
|
2453
|
-
/**
|
2454
|
-
* Performs an array (batch) of actions on the input documents. Each action has
|
2455
|
-
* a `kind` field that specifies the nature of the action. See ${@link AnalyzeBatchActionNames}
|
2456
|
-
* for a list of supported actions. In addition to `kind`, actions could also
|
2457
|
-
* have other parameters such as `disableServiceLogs` and `modelVersion`.
|
2458
|
-
*
|
2459
|
-
* The results array contains the results for those input actions where each
|
2460
|
-
* item also has a `kind` field that specifies the type of the results.
|
2461
|
-
*
|
2462
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2463
|
-
* for data limits.
|
2464
|
-
*
|
2465
|
-
* ### Examples
|
2466
|
-
*
|
2467
|
-
* #### Key phrase extraction and Pii entity recognition
|
2468
|
-
*
|
2469
|
-
* ```js
|
2470
|
-
* const poller = await client.beginAnalyzeBatch(
|
2471
|
-
* [{ kind: "KeyPhraseExtraction" }, { kind: "PiiEntityRecognition" }],
|
2472
|
-
* documents
|
2473
|
-
* );
|
2474
|
-
* const actionResults = await poller.pollUntilDone();
|
2475
|
-
*
|
2476
|
-
* for await (const actionResult of actionResults) {
|
2477
|
-
* if (actionResult.error) {
|
2478
|
-
* throw new Error(`Unexpected error`);
|
2479
|
-
* }
|
2480
|
-
* switch (actionResult.kind) {
|
2481
|
-
* case "KeyPhraseExtraction": {
|
2482
|
-
* for (const doc of actionResult.results) {
|
2483
|
-
* // do something
|
2484
|
-
* }
|
2485
|
-
* break;
|
2486
|
-
* }
|
2487
|
-
* case "PiiEntityRecognition": {
|
2488
|
-
* for (const doc of actionResult.results) {
|
2489
|
-
* // do something
|
2490
|
-
* }
|
2491
|
-
* break;
|
2492
|
-
* }
|
2493
|
-
* }
|
2494
|
-
* }
|
2495
|
-
* ```
|
2496
|
-
*
|
2497
|
-
* @param actions - an array of actions that will be run on the input documents
|
2498
|
-
* @param documents - the input documents to be analyzed
|
2499
|
-
* @param languageCode - the code of the language that all the input strings are
|
2500
|
-
* written in. If unspecified, this value will be set to the default
|
2501
|
-
* language in `TextAnalysisClientOptions`. If set to an empty string,
|
2502
|
-
* the service will apply a model where the language is explicitly set to
|
2503
|
-
* "None". Language support varies per action, for example, more information
|
2504
|
-
* about the languages supported for Entity Recognition actions can be
|
2505
|
-
* found in {@link https://docs.microsoft.com//azure/cognitive-services/language-service/named-entity-recognition/language-support}.
|
2506
|
-
* If set to "auto", the service will automatically infer the language from
|
2507
|
-
* the input text.
|
2508
|
-
* @param options - optional settings for the operation
|
2509
|
-
*
|
2510
|
-
* @returns an array of results corresponding to the input actions
|
2511
|
-
*/
|
2512
|
-
beginAnalyzeBatch(actions: AnalyzeBatchAction[], documents: string[], languageCode?: string, options?: BeginAnalyzeBatchOptions): Promise<AnalyzeBatchPoller>;
|
2513
|
-
/**
|
2514
|
-
* Performs an array (batch) of actions on the input documents. Each action has
|
2515
|
-
* a `kind` field that specifies the nature of the action. See ${@link AnalyzeBatchActionNames}
|
2516
|
-
* for a list of supported actions. In addition to `kind`, actions could also
|
2517
|
-
* have other parameters such as `disableServiceLogs` and `modelVersion`.
|
2518
|
-
*
|
2519
|
-
* The results array contains the results for those input actions where each
|
2520
|
-
* item also has a `kind` field that specifies the type of the results.
|
2521
|
-
*
|
2522
|
-
* See {@link https://docs.microsoft.com//azure/cognitive-services/language-service/concepts/data-limits}
|
2523
|
-
* for data limits.
|
2524
|
-
*
|
2525
|
-
* ### Examples
|
2526
|
-
*
|
2527
|
-
* #### Keyphrase extraction and Pii entity recognition
|
2528
|
-
*
|
2529
|
-
* ```js
|
2530
|
-
* const poller = await client.beginAnalyzeBatch(
|
2531
|
-
* [{ kind: "KeyPhraseExtraction" }, { kind: "PiiEntityRecognition" }],
|
2532
|
-
* documents
|
2533
|
-
* );
|
2534
|
-
* const actionResults = await poller.pollUntilDone();
|
2535
|
-
*
|
2536
|
-
* for await (const actionResult of actionResults) {
|
2537
|
-
* if (actionResult.error) {
|
2538
|
-
* throw new Error(`Unexpected error`);
|
2539
|
-
* }
|
2540
|
-
* switch (actionResult.kind) {
|
2541
|
-
* case "KeyPhraseExtraction": {
|
2542
|
-
* for (const doc of actionResult.results) {
|
2543
|
-
* // do something
|
2544
|
-
* }
|
2545
|
-
* break;
|
2546
|
-
* }
|
2547
|
-
* case "PiiEntityRecognition": {
|
2548
|
-
* for (const doc of actionResult.results) {
|
2549
|
-
* // do something
|
2550
|
-
* }
|
2551
|
-
* break;
|
2552
|
-
* }
|
2553
|
-
* }
|
2554
|
-
* }
|
2555
|
-
* ```
|
2556
|
-
*
|
2557
|
-
* @param actions - an array of actions that will be run on the input documents
|
2558
|
-
* @param documents - the input documents to be analyzed
|
2559
|
-
* @param options - optional settings for the operation
|
2560
|
-
*
|
2561
|
-
* @returns an array of results corresponding to the input actions
|
2562
|
-
*/
|
2563
|
-
beginAnalyzeBatch(actions: AnalyzeBatchAction[], documents: TextDocumentInput[], options?: BeginAnalyzeBatchOptions): Promise<AnalyzeBatchPoller>;
|
2564
|
-
/**
|
2565
|
-
* Creates a poller from the serialized state of another poller. This can be
|
2566
|
-
* useful when you want to create pollers on a different host or a poller
|
2567
|
-
* needs to be constructed after the original one is not in scope.
|
2568
|
-
*
|
2569
|
-
* @param serializedState - the serialized state of another poller. It is the
|
2570
|
-
* result of `poller.toString()`
|
2571
|
-
* @param options - optional settings for the operation
|
2572
|
-
*
|
2573
|
-
* # Example
|
2574
|
-
*
|
2575
|
-
* `client.beginAnalyzeBatch` returns a promise that will resolve to a poller.
|
2576
|
-
* The state of the poller can be serialized and used to create another as follows:
|
2577
|
-
*
|
2578
|
-
* ```js
|
2579
|
-
* const serializedState = poller.toString();
|
2580
|
-
* const rehydratedPoller = await client.createAnalyzeBatchPoller(serializedState);
|
2581
|
-
* const actionResults = await rehydratedPoller.pollUntilDone();
|
2582
|
-
* ```
|
2583
|
-
*/
|
2584
|
-
restoreAnalyzeBatchPoller(serializedState: string, options?: RestoreAnalyzeBatchPollerOptions): Promise<AnalyzeBatchPoller>;
|
2585
|
-
}
|
2586
|
-
|
2587
|
-
/**
|
2588
|
-
* Configuration options for {@link TextAnalysisClient}.
|
2589
|
-
*/
|
2590
|
-
export declare interface TextAnalysisClientOptions extends CommonClientOptions {
|
2591
|
-
/**
|
2592
|
-
* The default country hint to use. Defaults to "us".
|
2593
|
-
*/
|
2594
|
-
defaultCountryHint?: string;
|
2595
|
-
/**
|
2596
|
-
* The default language to use. Defaults to "en".
|
2597
|
-
*/
|
2598
|
-
defaultLanguage?: string;
|
2599
|
-
/**
|
2600
|
-
* The version of the Cognitive Language Service API to use.
|
2601
|
-
*/
|
2602
|
-
serviceVersion?: string;
|
2603
|
-
}
|
2604
|
-
|
2605
|
-
/**
|
2606
|
-
* Type describing an API error.
|
2607
|
-
*/
|
2608
|
-
export declare interface TextAnalysisError {
|
2609
|
-
/**
|
2610
|
-
* A code describing the kind of error produced. See {@link KnownTextAnalysisErrorCode}.
|
2611
|
-
*/
|
2612
|
-
readonly code: string;
|
2613
|
-
/**
|
2614
|
-
* A message from the service explaining the error
|
2615
|
-
*/
|
2616
|
-
readonly message: string;
|
2617
|
-
/**
|
2618
|
-
* The target of the particular error (for example, the name of an invalid parameter)
|
2619
|
-
*/
|
2620
|
-
readonly target?: string;
|
2621
|
-
}
|
2622
|
-
|
2623
|
-
/**
|
2624
|
-
* Base type for error results of an action corresponding to a single document.
|
2625
|
-
*/
|
2626
|
-
export declare interface TextAnalysisErrorResult {
|
2627
|
-
/**
|
2628
|
-
* Unique, non-empty document identifier.
|
2629
|
-
*/
|
2630
|
-
readonly id: string;
|
2631
|
-
/**
|
2632
|
-
* The Error for this document result.
|
2633
|
-
*/
|
2634
|
-
readonly error: TextAnalysisError;
|
2635
|
-
}
|
2636
|
-
|
2637
|
-
/**
|
2638
|
-
* Options common to all operations.
|
2639
|
-
*/
|
2640
|
-
export declare interface TextAnalysisOperationOptions extends OperationOptions {
|
2641
|
-
/**
|
2642
|
-
* If set to true, response will contain input and document level statistics.
|
2643
|
-
*/
|
2644
|
-
includeStatistics?: boolean;
|
2645
|
-
}
|
2646
|
-
|
2647
|
-
/**
|
2648
|
-
* Base type for results of an action corresponding to a single input document.
|
2649
|
-
*/
|
2650
|
-
export declare interface TextAnalysisSuccessResult {
|
2651
|
-
/**
|
2652
|
-
* Unique, non-empty document identifier.
|
2653
|
-
*/
|
2654
|
-
readonly id: string;
|
2655
|
-
/**
|
2656
|
-
* Statistics about the input document and how it was processed by the service.
|
2657
|
-
* This property will have a value when includeStatistics is set to true in
|
2658
|
-
* the client call.
|
2659
|
-
*/
|
2660
|
-
readonly statistics?: TextDocumentStatistics;
|
2661
|
-
/**
|
2662
|
-
* An array of warning data corresponding to this document.
|
2663
|
-
*
|
2664
|
-
* If no warnings were returned, this array will be empty.
|
2665
|
-
*/
|
2666
|
-
readonly warnings: DocumentWarning[];
|
2667
|
-
/**
|
2668
|
-
* Discriminant to determine if this is an error result.
|
2669
|
-
*/
|
2670
|
-
readonly error?: undefined;
|
2671
|
-
}
|
2672
|
-
|
2673
|
-
/** if includeStatistics=true was specified in the request this field will contain information about the request payload. */
|
2674
|
-
export declare interface TextDocumentBatchStatistics {
|
2675
|
-
/** Number of documents submitted in the request. */
|
2676
|
-
documentCount: number;
|
2677
|
-
/** Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. */
|
2678
|
-
validDocumentCount: number;
|
2679
|
-
/** Number of invalid documents. This includes empty, over-size limit or non-supported languages documents. */
|
2680
|
-
erroneousDocumentCount: number;
|
2681
|
-
/** Number of transactions for the request. */
|
2682
|
-
transactionCount: number;
|
2683
|
-
}
|
2684
|
-
|
2685
|
-
/** An object representing an individual text document to be analyzed by the Language service. The document contains a unique document ID, the full text of the document, and the language of the document's text. */
|
2686
|
-
export declare interface TextDocumentInput {
|
2687
|
-
/** A unique, non-empty document identifier. */
|
2688
|
-
id: string;
|
2689
|
-
/** The input text to process. */
|
2690
|
-
text: string;
|
2691
|
-
/** (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. */
|
2692
|
-
language?: string;
|
2693
|
-
}
|
2694
|
-
|
2695
|
-
/** if includeStatistics=true was specified in the request this field will contain information about the document payload. */
|
2696
|
-
export declare interface TextDocumentStatistics {
|
2697
|
-
/** Number of text elements recognized in the document. */
|
2698
|
-
characterCount: number;
|
2699
|
-
/** Number of transactions for the document. */
|
2700
|
-
transactionCount: number;
|
2701
|
-
}
|
2702
|
-
|
2703
|
-
/** Defines values for TokenSentimentLabel. */
|
2704
|
-
export declare type TokenSentimentLabel = "positive" | "mixed" | "negative";
|
2705
|
-
|
2706
|
-
/**
|
2707
|
-
* Defines values for WarningCode. \
|
2708
|
-
* {@link KnownWarningCode} can be used interchangeably with WarningCode,
|
2709
|
-
* this enum contains the known values that the service supports.
|
2710
|
-
* ### Known values supported by the service
|
2711
|
-
* **LongWordsInDocument** \
|
2712
|
-
* **DocumentTruncated**
|
2713
|
-
*/
|
2714
|
-
export declare type WarningCode = string;
|
2715
|
-
|
2716
|
-
export { }
|