-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b92c535
commit cdec7a2
Showing
25 changed files
with
4,237 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# Release History | ||
|
||
## 5.1.0-beta.3 (Unreleased) | ||
|
||
## 5.2.0-beta.1 (Unreleased) | ||
|
||
## 5.1.0-beta.2 (2020-10-06) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
import { PagedAsyncIterableIterator } from "@azure/core-paging"; | ||
import { ExtractKeyPhrasesSuccessResult } from "./extractKeyPhrasesResult"; | ||
import { TextDocumentBatchStatistics } from "./generated/models"; | ||
import { RecognizeCategorizedEntitiesSuccessResult } from "./recognizeCategorizedEntitiesResult"; | ||
import { RecognizePiiEntitiesSuccessResult } from "./recognizePiiEntitiesResult"; | ||
import { TextAnalyticsErrorResult } from "./textAnalyticsResult"; | ||
|
||
/** | ||
* The results of a successful analyze entities job on a single document. | ||
*/ | ||
export interface AnalyzeEntitiesResult extends RecognizeCategorizedEntitiesSuccessResult { | ||
type: "Entities"; | ||
} | ||
|
||
export interface AnalyzePiiEntitiesResult extends RecognizePiiEntitiesSuccessResult { | ||
type: "PiiEntities"; | ||
} | ||
|
||
export interface AnalyzeKeyPhrasesResult extends ExtractKeyPhrasesSuccessResult { | ||
type: "KeyPhrases"; | ||
} | ||
|
||
/** | ||
* An error result from the analyze operation on a single document. | ||
*/ | ||
export interface AnalyzeErrorResult extends TextAnalyticsErrorResult { | ||
type: "Error"; | ||
} | ||
|
||
/** | ||
* The results of a successful analyze job for a single document. | ||
*/ | ||
export type AnalyzeResult = | ||
| AnalyzeEntitiesResult | ||
| AnalyzePiiEntitiesResult | ||
| AnalyzeKeyPhrasesResult | ||
| AnalyzeErrorResult; | ||
|
||
/** | ||
* Array of {@link AnalyzeResult} | ||
*/ | ||
export interface AnalyzeResultsArray extends Array<AnalyzeResult> {} | ||
|
||
/** | ||
* The results of an analyze job represented as a paginated iterator that can | ||
* either iterate over the results on a document-by-document basis or, by | ||
* byPage(), can iterate over pages of documents. | ||
*/ | ||
export type PagedAsyncIterableAnalyzeResults = PagedAsyncIterableIterator< | ||
AnalyzeResult, | ||
AnalyzeResultsArray | ||
>; | ||
|
||
/** | ||
* The results of an analyze job represented as a paginated iterator that can | ||
* either iterate over the results on a document-by-document basis or, by | ||
* byPage(), can iterate over pages of documents. | ||
*/ | ||
export interface PaginatedAnalyzeResults extends PagedAsyncIterableAnalyzeResults { | ||
/** | ||
* Statistics about the input document batch and how it was processed | ||
* by the service. This property will have a value when includeStatistics is set to true | ||
* in the client call. | ||
*/ | ||
statistics?: TextDocumentBatchStatistics; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
export const SDK_VERSION: string = "5.1.0-beta.3"; | ||
export const SDK_VERSION: string = "5.2.0-beta.1"; |
Oops, something went wrong.