Skip to content

Commit

Permalink
Merge pull request Azure#28 from samvaity/ta-update
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Dec 17, 2019
2 parents 068fca9 + d25f067 commit ed6cafb
Show file tree
Hide file tree
Showing 39 changed files with 574 additions and 672 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

/**
* This class provides an asynchronous client that contains all the operations that apply to Azure Text Analytics.
* Operations allow by the client to detect language, recognize entities, recognize pii entities,
* Operations allow by the client to detect language, recognize entities, recognize PII entities,
* recognize linked entities, and analyze sentiment for a text input or a list of text input.
*
* <p><strong>Instantiating an asynchronous Text Analytics Client</strong></p>
Expand Down Expand Up @@ -399,7 +399,7 @@ Mono<Response<DocumentResultCollection<NamedEntityResult>>> recognizeBatchEntiti
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
*
* @param text the text to recognize pii entities for.
* @param text the text to recognize PII entities for.
*
* @return A {@link Mono} containing the {@link NamedEntityResult PII entity} of the text.
* @throws NullPointerException if {@code text} is {@code null}.
Expand All @@ -414,7 +414,7 @@ public Mono<NamedEntityResult> recognizePiiEntities(String text) {
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
*
* @param text the text to recognize pii entities for.
* @param text the text to recognize PII entities for.
* @param language The 2 letter ISO 639-1 representation of language for the text. If not set, uses "en" for
* English as default.
*
Expand Down Expand Up @@ -449,7 +449,7 @@ Mono<Response<NamedEntityResult>> recognizePiiEntitiesWithResponse(String text,
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
*
* @param textInputs A list of text to recognize pii entities for.
* @param textInputs A list of text to recognize PII entities for.
* @return A {@link Mono} containing the {@link DocumentResultCollection batch} of the
* {@link NamedEntityResult named entity} of the text.
* @throws NullPointerException if {@code textInputs} is {@code null}.
Expand All @@ -465,7 +465,7 @@ public Mono<DocumentResultCollection<NamedEntityResult>> recognizePiiEntities(Li
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
* *
* @param textInputs A list of text to recognize pii entities for.
* @param textInputs A list of text to recognize PII entities for.
* @param language The 2 letter ISO 639-1 representation of language for the text. If not set, uses "en" for
* English as default.
*
Expand Down Expand Up @@ -495,7 +495,7 @@ Mono<Response<DocumentResultCollection<NamedEntityResult>>> recognizePiiEntities
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
*
* @param textInputs A list of {@link TextDocumentInput inputs/documents} to recognize pii entities for.
* @param textInputs A list of {@link TextDocumentInput inputs/documents} to recognize PII entities for.
*
* @return A {@link Mono} containing the {@link DocumentResultCollection batch} of the
* {@link NamedEntityResult named entity}.
Expand All @@ -512,7 +512,7 @@ public Mono<DocumentResultCollection<NamedEntityResult>> recognizeBatchPiiEntiti
* For the list of supported entity types, check https://aka.ms/tanerpii.
* See https://aka.ms/talangs for the list of enabled languages.
*
* @param textInputs A list of {@link TextDocumentInput inputs/documents} to recognize pii entities for.
* @param textInputs A list of {@link TextDocumentInput inputs/documents} to recognize PII entities for.
* @param options The {@link TextAnalyticsRequestOptions options} to configure the scoring model for documents
* and show statistics.
*
Expand Down Expand Up @@ -1128,6 +1128,7 @@ private TextSentimentResult convertToErrorTextSentimentResult(final DocumentErro
* Helper method to convert the service response of {@link LanguageResult} to {@link DocumentResultCollection}.
*
* @param languageResult the {@link LanguageResult} returned by the service.
*
* @return the {@link DocumentResultCollection} of {@link DetectLanguageResult} to be returned by the SDK.
*/
private DocumentResultCollection<DetectLanguageResult> toDocumentResultCollection(
Expand All @@ -1140,6 +1141,7 @@ private DocumentResultCollection<DetectLanguageResult> toDocumentResultCollectio
* Helper method to get a combined list of error documents and valid documents.
*
* @param languageResult the {@link LanguageResult} containing both the error and document list.
*
* @return the combined error and document list.
*/
private static List<DetectLanguageResult> getDocumentLanguages(final LanguageResult languageResult) {
Expand Down
Loading

0 comments on commit ed6cafb

Please sign in to comment.