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

[TA] Add domainFilter feature to PII endpoint #14714

Merged
merged 7 commits into from
Sep 4, 2020

Conversation

mssfang
Copy link
Member

@mssfang mssfang commented Sep 2, 2020

fixes: #14713

@mssfang mssfang self-assigned this Sep 2, 2020
@mssfang mssfang added the Client This issue points to a problem in the data-plane of the library. label Sep 2, 2020
@mssfang mssfang added this to the [2020] September milestone Sep 2, 2020
@mssfang mssfang marked this pull request as ready for review September 2, 2020 03:20
"Recognized Personally Identifiable Information entity: %s, entity category: %s,"
+ " entity subcategory: %s, confidence score: %f.%n",
entity.getText(), entity.getCategory(), entity.getSubcategory(), entity.getConfidenceScore()));
// END: com.azure.ai.textanalytics.TextAnalyticsClient.recognizePiiEntities#String-String-RecognizePiiEntityOptions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test for domain filter where a returned entity gets filtered out? Here is a python test for taht

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few tests for domain filter already in the PR. You are looking at the codesnippet section. https://github.com/Azure/azure-sdk-for-java/pull/14714/files#diff-9df5b3d7d96dd8e2313b619beb609285R509

@mssfang
Copy link
Member Author

mssfang commented Sep 3, 2020

/azp run java - textanalytics - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssfang
Copy link
Member Author

mssfang commented Sep 3, 2020

/azp run java - textanalytics - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssfang
Copy link
Member Author

mssfang commented Sep 3, 2020

/azp run java - textanalytics - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

* @param context Additional context that is passed through the Http pipeline during the service call.
*
* @return A mono {@link Response} that contains {@link RecognizePiiEntitiesResultCollection}.
*/
private Mono<Response<RecognizePiiEntitiesResultCollection>> getRecognizePiiEntitiesResponse(
Iterable<TextDocumentInput> documents, TextAnalyticsRequestOptions options, Context context) {
Iterable<TextDocumentInput> documents, RecognizePiiEntityOptions options, Context context) {
String modelVersion = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming, it is fine to send the modelVersion and domainFilter as null to the service?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. By default.

@mssfang mssfang merged commit eecf0ed into Azure:master Sep 4, 2020
@mssfang mssfang deleted the TA-domainFilter branch September 4, 2020 00:22
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this pull request Jun 21, 2021
Adding iperf APIs (Azure#14714)

* Adding iperf APIs

* Addressing review comments

* Addressing PR comments

* Removing APIs unimplemented in Sterling

* Fixing resource schemas

* Fixing linting errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Text Analytics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TA] Add domainFilter feature
4 participants