feat: Adding capability use Cognitive Service Language Service asynchronously for Summarization#2342
Merged
Conversation
…ly. The transformer calls the async service and poll for result. The polling delay and max retry attempts is controlled by parameters. Request creation for each task is extracted into separate trait to make code more readable and manageable. There has been minimal changes in AnalyzeText class.
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| //------------------------------------------------------------------------------------------------------ | ||
| // Abstractive Summarization | ||
| //------------------------------------------------------------------------------------------------------ | ||
| object SummaryLength extends Enumeration { |
Contributor
There was a problem hiding this comment.
How does the spark bindings API handle enums? How does this look in the schema of the dataframe
Contributor
Author
There was a problem hiding this comment.
This is just a helper enum, the field in the class is of type string
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2342 +/- ##
==========================================
+ Coverage 84.55% 84.66% +0.10%
==========================================
Files 328 331 +3
Lines 16848 17177 +329
Branches 1513 1526 +13
==========================================
+ Hits 14246 14543 +297
- Misses 2602 2634 +32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…classification. Unit tests are added to validate that requests and response are correct. Also added tiemout for AbstractiveSummary requests.
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
mhamilton723
reviewed
Feb 5, 2025
mhamilton723
reviewed
Feb 5, 2025
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
mhamilton723
approved these changes
Feb 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes are proposed in this pull request?
Adding a new capability to use Cognitive Service Language Service asynchronously.
The transformer calls the async service and poll for result. The polling delay and max retry attempts is controlled by parameters. Request creation for each task is extracted into separate trait to make code more readable and manageable. There has been minimal changes in AnalyzeText class.
In this PR we adding support for following tasks
How is this patch tested?
Using unit tests, I have called each service and validated that transformer is working.
Does this PR change any dependencies?
Does this PR add a new feature? If so, have you added samples on website?