Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Analytics doc snippets async client #7162

Merged
merged 9 commits into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@
<suppress checks="LineLength" files="com.azure.ai.textanalytics.implementation.TextAnalyticsClientImplBuilder"/>
<suppress checks="LineLength" files="com.azure.ai.textanalytics.implementation.TextAnalyticsClientImpl"/>

<!-- Suppress this until all endpoints are implemented. -->
<!-- Fix with https://github.com/Azure/azure-sdk-for-java/issues#6500 -->
<suppress checks="MissingJavadocMethod" files=".*[/\\]textanalytics[/\\].*"/>
<!-- TODO: Fix with https://github.com/Azure/azure-sdk-for-java/issues#6716 Method name should follow a common vocabulary. -->
<suppress checks="com.azure.tools.checkstyle.checks.ServiceClientCheck" files=".*[/\\]textanalytics[/\\].*"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Mono<Response<DocumentResultCollection<RecognizePiiEntitiesResult>>> recognizeBa
batchInput,
options == null ? null : options.getModelVersion(),
options == null ? null : options.showStatistics(), context)
.doOnSubscribe(ignoredValue -> logger.info("A batch of PII entities input - {}", textInputs.toString()))
.doOnSubscribe(ignoredValue -> logger.info("Processing a batch of PII entities input"))
.doOnSuccess(response -> logger.info("A batch of PII entities output - {}", response.getValue()))
.doOnError(error -> logger.warning("Failed to recognize PII entities - {}", error))
.map(response -> new SimpleResponse<>(response, toPiiDocumentResultCollection(response.getValue())));
Expand Down
Loading