Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where EDA augmentation recipe would not accept default Augmentation arguments #797

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

bterrific2008
Copy link
Contributor

What does this PR do?

Summary

This PR resolves a bug where using the EDA augmentation recipe would not work with the textattack augmentation cli. This issue was because the EDA recipe did not accept the default arguments defined in the Augmentation superclass. This change resolves this issue by accepting a var-keyword parameter, which is then passed to the component Augmenter objects used by the EDA recipe.

This PR resolved the bug raised in #796, which found that running the EDA recipe from the textattack augmentation cli would raise a TypeError: __init__() got an unexpected keyword argument `high_yield`

Changes

  • Changes EDA recipe to accept a var-keyword parameter, which is passed to the component Augmenter objects

Copy link
Collaborator

@jxmorris12 jxmorris12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is really helpful.

@jxmorris12 jxmorris12 merged commit 5fbb076 into QData:master Jul 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants