You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We must implement the new Classify Custom Categories API following the design presented in: apiview
This new feature will be added as one of the actions in the Analyze API.
Usage example:
vardocuments=newList<string>(){"There are so many ways of arranging a deck of cards that, after shuffling it, it's almost guaranteed that the resulting sequence of cards has never appeared in the history of humanity."}TextAnalyticsActionsactions=newTextAnalyticsActions(){ClassifyCustomCategoriesActions={newClassifyCustomCategoriesAction("<project-name>","<deployment-name>")}};AnalyzeActionsOperationoperation=awaitclient.StartAnalyzeActionsAsync(documents,actions);awaitoperation.WaitForCompletionAsync();AnalyzeActionsResultactionsResult=operation.Value;IReadOnlyCollection<ClassifyCustomCategoriesActionResult>results=actionsResult.ClassifyCustomCategoriesResults;
Goals
Note: it's strongly recommended to use the already implemented Extractive Summarization API as a reference. It's also part of the Analyze API, and the general structures of models/tests/samples are the same.
Add new models/properties and their implementations.
Tests
Note: currently we're still waiting for the service team to provide a resource we can use for testing, so live testing cannot be accomplished until then.
For each one of the tasks below, a "reference" test has been added so it can be used as a guide during implementation. The general structure of the suggested reference tests are very similar to the ones we want to implement.
Add live tests for the new Classify Custom Categories API. Reference test class: ExtractSummaryTests.
Add new tests in AnalyzeMockTests:
Assert loggingOptOut JSON property is sent when using ClassifyCustomCategoriesAction.DisableServiceLogs. Reference test: AnalyzeOperationExtractSummaryWithDisableServiceLogs.
Assert that sending two ClassifyCustomCategoriesAction in the same request throws an ArgumentException. Reference test: AnalyzeOperationExtractSummaryWithTwoActions.
Update existing tests in AnalyzeMockTests:
Modify AnalyzeOperationWithActionsError to include the new task used in the Classify Custom Categories API.
Update existing tests in AnalyzeOperationTests:
Modify AnalyzeOperationTest to include the new ClassifyCustomCategoriesAction.
Documentation and Samples
Add a new sample for the Classify Custom Categories API.
Consider adding a new section to the README as well to illustrate the usage of the new API.
Update changelogs.
The text was updated successfully, but these errors were encountered:
Issue
We must implement the new Classify Custom Categories API following the design presented in: apiview
This new feature will be added as one of the actions in the Analyze API.
Usage example:
Goals
Note: it's strongly recommended to use the already implemented Extractive Summarization API as a reference. It's also part of the Analyze API, and the general structures of models/tests/samples are the same.
Implementation
Tests
Note: currently we're still waiting for the service team to provide a resource we can use for testing, so live testing cannot be accomplished until then.
For each one of the tasks below, a "reference" test has been added so it can be used as a guide during implementation. The general structure of the suggested reference tests are very similar to the ones we want to implement.
Add live tests for the new Classify Custom Categories API. Reference test class:
ExtractSummaryTests
.Add new tests in
AnalyzeMockTests
:loggingOptOut
JSON property is sent when usingClassifyCustomCategoriesAction.DisableServiceLogs
. Reference test:AnalyzeOperationExtractSummaryWithDisableServiceLogs
.ClassifyCustomCategoriesAction
in the same request throws anArgumentException
. Reference test:AnalyzeOperationExtractSummaryWithTwoActions
.Update existing tests in
AnalyzeMockTests
:AnalyzeOperationWithActionsError
to include the new task used in the Classify Custom Categories API.Update existing tests in
AnalyzeOperationTests
:AnalyzeOperationTest
to include the newClassifyCustomCategoriesAction
.Documentation and Samples
The text was updated successfully, but these errors were encountered: