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

Textattack augment command line usage reports error: unexpected keyword argument 'high_yield' #730

Open
Falanke21 opened this issue May 3, 2023 · 1 comment

Comments

@Falanke21
Copy link
Contributor

Describe the bug
Just did a fresh download of textattack from pip within python venv, and copied the first command from https://textattack.readthedocs.io/en/master/0_get_started/command_line_usage.html# , but I received the error
image

To Reproduce
Steps to reproduce the behavior:

  1. Install textattack from pip as pip install textattack[tensorflow]
  2. Create examples.csv as the docs say
    "text",label
    "the rock is destined to be the 21st century's new conan and that he's going to make a splash even greater than arnold
    schwarzenegger , jean- claud van damme or steven segal.", 1
    "the gorgeously elaborate continuation of 'the lord of the rings' trilogy is so huge that a column of words cannot adequately
    describe co-writer/director peter jackson's expanded vision of j . r . r . tolkien's middle-earth .", 1
    "take care of my cat offers a refreshingly different slice of asian cinema .", 1
    "a technically well-made suspenser . . . but its abrupt drop in iq points as it races to the finish line proves simply too discouraging to
    let slide .", 0
    "it's a mystery how the movie could be released in this condition .", 0
  3. Run following code textattack augment --input-csv examples.csv --output-csv output.csv --input-column text --recipe eda --pct-words-to-swap .1 \ --transformations-per-example 2 --exclude-original
  4. See error

Expected behavior
Expected to produce output.csv

System Information (please complete the following information):

  • OS: 22.04.1-Ubuntu
  • Textattack version 0.3.8
  • Python version 3.10.6
@Falanke21 Falanke21 changed the title textattack augment command line usage reports error: unexpected keyword argument 'high_yield' Textattack augment command line usage reports error: unexpected keyword argument 'high_yield' May 3, 2023
@YpLarryWang
Copy link

Hi~ Did you solve this problem?

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

No branches or pull requests

2 participants