Repository navigation
[Docs] Add Vietnamese Text Analytics samples - #49764
Slai.life (huong8373tt-beep) wants to merge 2 commits into
Conversation
|
Thank you for your contribution Slai.life (@huong8373tt-beep)! We will review the pull request and get back to you soon. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Addressed the Build Analyze spelling failure in The Vietnamese sample text is intentional, so I added the Vietnamese words used by the six new Text Analytics samples to the existing package-specific Validation:
The other build/test jobs were already green; this should unblock the Analyze stage. |
There was a problem hiding this comment.
🔵 Needs a closer look
Vietnamese key phrase extraction support remains unverified because the SDK only forwards vi, and compile-only validation does not confirm support in the service language matrix or through a live call.
No open issues 🎉
What changed in this PR
Adds Vietnamese (vi) examples to the Azure AI Text Analytics SDK samples, addressing the Text Analytics documentation gap in #49700 without changing SDK behavior.
Changes:
- Adds synchronous and asynchronous samples for sentiment analysis, key phrase extraction, and named entity recognition.
- Links all six examples from the samples README.
- Adds Vietnamese sample vocabulary to the spell-check configuration.
| File | Description |
|---|---|
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities_vietnamese.py |
Adds synchronous Vietnamese entity recognition. |
sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases_vietnamese.py |
Adds synchronous Vietnamese key phrase extraction. |
sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_vietnamese.py |
Adds synchronous Vietnamese sentiment analysis. |
sdk/textanalytics/azure-ai-textanalytics/samples/README.md |
Lists and links the six new samples. |
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_vietnamese_async.py |
Adds asynchronous Vietnamese entity recognition. |
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_vietnamese_async.py |
Adds asynchronous Vietnamese key phrase extraction. |
sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_vietnamese_async.py |
Adds asynchronous Vietnamese sentiment analysis. |
.vscode/cspell.json |
Allows Vietnamese vocabulary used in the samples. |
Review effort: Balanced
Summary
Add synchronous and asynchronous Vietnamese (
vi) examples for Azure AI Text Analytics:The samples follow the existing package conventions and are linked from the Text Analytics samples README. They pass
vithrough the existing SDK client APIs and do not change SDK behavior.Fixes #49700.
Validation
TextAnalyticsClientand async client APIs.compileall.git diff --checkpassed.No service credentials or live calls were used. Therefore, this PR verifies the sample syntax and SDK invocation pattern, but does not claim live service-language availability for Vietnamese key phrase extraction.
Disclosure and authorization
Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.