-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
"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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/TextAnalyticsAsyncClient.java
Show resolved
Hide resolved
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/TextAnalyticsAsyncClient.java
Show resolved
Hide resolved
...re-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/PiiEntityDomainType.java
Outdated
Show resolved
Hide resolved
...textanalytics/src/main/java/com/azure/ai/textanalytics/models/RecognizePiiEntityOptions.java
Outdated
Show resolved
Hide resolved
...ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizePiiEntityAsyncClient.java
Outdated
Show resolved
Hide resolved
...re-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/PiiEntityDomainType.java
Show resolved
Hide resolved
/azp run java - textanalytics - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - textanalytics - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - textanalytics - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...re-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/PiiEntityDomainType.java
Outdated
Show resolved
Hide resolved
...ics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputForDomainFilter.json
Show resolved
Hide resolved
* @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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. By default.
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
fixes: #14713