You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install textattack from pip as pip install textattack[tensorflow]
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
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
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
The text was updated successfully, but these errors were encountered:
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
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
To Reproduce
Steps to reproduce the behavior:
pip install textattack[tensorflow]
"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
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
Expected behavior
Expected to produce output.csv
System Information (please complete the following information):
The text was updated successfully, but these errors were encountered: