[TA] Added RecognizeCustomEntities Functionality#24245
[TA] Added RecognizeCustomEntities Functionality#24245maririos merged 7 commits intoAzure:feature/textanalytics/customfrom
Conversation
maririos
left a comment
There was a problem hiding this comment.
So far it looks good. Mostly nits. Next review I will look at the tests
Because Ahmed's PR was merged, need to resolve the conflicts.
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/CustomEntitiesTaskParameters.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/JobManifestTasks.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeCustomEntitiesAction.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeCustomEntitiesAction.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeCustomEntitiesResultCollection.cs
Show resolved
Hide resolved
deyaaeldeen
left a comment
There was a problem hiding this comment.
The implementation looks really good. I left a few comments, with one on re-using RecognizeEntitiesResult.
|
@maririos @mssfang @deyaaeldeen Thank you all for your great review! I've made all the changes, I've also generated the code based on the new swagger as @mssfang told me. |
|
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them. In order to bootstrap pipelines for a new service, please perform following steps: For data-plane/track 2 SDKs Issue the following command as a pull request comment:
For track 1 management-plane SDKsPlease open a separate PR and to your service SDK path in this file. Once that PR has been merged, you can re-run the pipeline to trigger the verification. |
bffce62 to
b95eab9
Compare
b95eab9 to
c67e98a
Compare
c67e98a to
26c7640
Compare
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
26c7640 to
dded44f
Compare
kinelski
left a comment
There was a problem hiding this comment.
Partial review (haven't looked through tests yet).
sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeActionsResult.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/CustomEntitiesTaskParameters.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs
Show resolved
Hide resolved
...tics/Azure.AI.TextAnalytics/tests/samples/Sample9_RecognizeCustomEntitiesAsyncConvenience.cs
Outdated
Show resolved
Hide resolved
...tics/Azure.AI.TextAnalytics/tests/samples/Sample9_RecognizeCustomEntitiesAsyncConvenience.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/Infrastructure/TextAnalyticsTestEnvironment.cs
Outdated
Show resolved
Hide resolved
...tics/Azure.AI.TextAnalytics/tests/samples/Sample9_RecognizeCustomEntitiesAsyncConvenience.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample9_RecognizeCustomEntities.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeCustomEntitiesAction.cs
Show resolved
Hide resolved
maririos
left a comment
There was a problem hiding this comment.
Almost there. Most comments are nits.
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeCustomEntitiesTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeCustomEntitiesTests.cs
Outdated
Show resolved
Hide resolved
| return ActionResult.DocumentsResults; | ||
| } | ||
|
|
||
| private void ValidateInDocumentResult(CategorizedEntityCollection entities, List<string> minimumExpectedOutput) |
There was a problem hiding this comment.
For now, this is good, but could you create an issue for us to look into moving the ValidateInDocumentResult function into a commonplace that both the RecognizeCustomEntitiesTests and the RecognizeEntitiesTests classes can consume?
....TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithPHIDomain.json
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/TextAnalyticsModelFactoryTests.cs
Show resolved
Hide resolved
| /// <summary> | ||
| /// JobManifestTasks. | ||
| /// </summary> | ||
| [CodeGenModel("JobManifestTasks")] |
There was a problem hiding this comment.
I imagine this was added by mistake?
There was a problem hiding this comment.
This is actually so weird, I didn't add it and I have no idea where did it come from!
There was a problem hiding this comment.
The difference between it and the original one is the path, azure.ai.textanalytics is capitalized in the original one. I can't find the file locally, It may be a bug
There was a problem hiding this comment.
weird. can u just delete the file so we don't merge it?
|
@ZulaMostafa after you make changes to samples that use snippets, don't forget to run |
maririos
left a comment
There was a problem hiding this comment.
Besides the weird new file :P changes LGTM!!!
|
I think we are good to go now! |
Almost. Still need to delete file |
My bad, I read your comment from the mail so I thought you was talking about session records. Anyways, I deleted the weirdo file :p |
|
/azp run net - textanalytics - ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* [TextAnalytics] Generated client from 3.2-preview.2 swagger (#23536) * [TA] Added SingleCategoryClassify functionality (#24235) * [TA] Added MultiCategoryClassify Functionality (#24237) * [TA] Added RecognizeCustomEntities Functionality (#24245) * [TA] Expose ActionName and enable multiple actions from same type (#24619) * Rerecorded all tests excluding AAD ones (#24913) * re-record AAD tests (#24919) * [TA] Enable CI for live tests for custom features (#24916) * add comments Co-authored-by: Caio Saldanha <camaiaor@microsoft.com> Co-authored-by: Ahmed Leithy <v-aleithy@microsoft.com> Co-authored-by: Salah Mostafa <zulamostafa@gmail.com> Co-authored-by: Salah Mostafa <v-samostafa@microsoft.com>
This PR contains the implementation of the Recognize Custom Entities API interface as explained in #24054