Add sample for creating an analyzer with labeled training data and associated test data #54337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for training custom analyzers in Azure AI Content Understanding using labeled data stored in Azure Blob Storage. It introduces a comprehensive sample demonstrating the process, updates the test environment to support training data configuration, and adds necessary dependencies and test data.
New sample and documentation for labeled data training:
Sample16_CreateAnalyzerWithLabels.mdthat explains how to train a custom analyzer using labeled data, including setup instructions, code snippets, training data structure, and key concepts.SDK and test infrastructure enhancements:
LabeledDataKnowledgeSourcefor easier instantiation with just a container URL, simplifying usage in code and samples.ContentUnderstandingClientTestEnvironmentto support environment variables for training data SAS URL, path, storage account, and container name, enabling flexible test configuration for labeled data scenarios.Test and dependency updates:
Azure.Storage.Blobspackage to test dependencies to facilitate uploading training data to Azure Blob Storage in sample and test code.17a84146-e910-460c-bf80-a625e6f64fea.jpg.labels.jsonto the test data folder, providing a concrete example for analyzer training.