Skip to content

Commit

Permalink
Merge pull request #473 from cogeid/file-redirection-fix
Browse files Browse the repository at this point in the history
File redirection fix
  • Loading branch information
qiyanjun committed Jul 2, 2021
2 parents 7855b9e + bfd6216 commit 2ebbab0
Show file tree
Hide file tree
Showing 16 changed files with 120 additions and 121 deletions.
2 changes: 1 addition & 1 deletion tests/sample_outputs/interactive_mode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
)
(is_black_box): True
)
/.*/

Running in interactive mode
----------------------------
Enter a sentence to attack or "q" to quit:
Expand Down
14 changes: 7 additions & 7 deletions tests/sample_outputs/kuleshov_cnn_sst_2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@
(4): StopwordModification
(is_black_box): True
)
/.*/

--------------------------------------------- Result 1 ---------------------------------------------
Positive (100%) --> Negative (69%)
[[Positive (100%)]] --> [[Negative (69%)]]

it 's a charming and often affecting journey .
it 's a [[charming]] and [[often]] affecting journey .

it 's a loveable and ordinarily affecting journey .
it 's a [[loveable]] and [[ordinarily]] affecting journey .


--------------------------------------------- Result 2 ---------------------------------------------
Negative (83%) --> Positive (90%)
[[Negative (83%)]] --> [[Positive (90%)]]

unflinchingly bleak and desperate
unflinchingly bleak and [[desperate]]

unflinchingly bleak and desperation
unflinchingly bleak and [[desperation]]



Expand Down
1 change: 0 additions & 1 deletion tests/sample_outputs/list_augmentation_recipes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
eda (textattack.augmentation.EasyDataAugmenter)
embedding (textattack.augmentation.EmbeddingAugmenter)
wordnet (textattack.augmentation.WordNetAugmenter)

20 changes: 10 additions & 10 deletions tests/sample_outputs/run_attack_cnn_cola.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@
)
(is_black_box): True
)
/.*/

--------------------------------------------- Result 1 ---------------------------------------------
2 (72%) --> 1 (53%)
[[2 (72%)]] --> [[1 (53%)]]

Contrary to other reviews, I have zero complaints about the service or the prices. I have been getting tire service here for the past 5 years now, and compared to my experience with places like Pep Boys, these guys are experienced and know what they're doing. \nAlso, this is one place that I do not feel like I am being taken advantage of, just because of my gender. Other auto mechanics have been notorious for capitalizing on my ignorance of cars, and have sucked my bank account dry. But here, my service and road coverage has all been well explained - and let up to me to decide. \nAnd they just renovated the waiting room. It looks a lot better than it did in previous years.
Contrary to other reviews, I have zero complaints about the service or the prices. I have been getting tire service here for the past 5 years now, and compared to my experience with places like Pep Boys, these [[guys]] are experienced and know what they're doing. \nAlso, this is one place that I do not feel like I am being taken advantage of, just because of my gender. Other auto mechanics have been notorious for capitalizing on my ignorance of cars, and have sucked my bank account dry. But here, my service and road coverage has all been well explained - and let up to me to decide. \nAnd they just renovated the waiting room. It looks a lot better than it did in previous years.

Contrary to other reviews, I have zero complaints about the service or the prices. I have been getting tire service here for the past 5 years now, and compared to my experience with places like Pep Boys, these blackguard are experienced and know what they're doing. \nAlso, this is one place that I do not feel like I am being taken advantage of, just because of my gender. Other auto mechanics have been notorious for capitalizing on my ignorance of cars, and have sucked my bank account dry. But here, my service and road coverage has all been well explained - and let up to me to decide. \nAnd they just renovated the waiting room. It looks a lot better than it did in previous years.
Contrary to other reviews, I have zero complaints about the service or the prices. I have been getting tire service here for the past 5 years now, and compared to my experience with places like Pep Boys, these [[blackguard]] are experienced and know what they're doing. \nAlso, this is one place that I do not feel like I am being taken advantage of, just because of my gender. Other auto mechanics have been notorious for capitalizing on my ignorance of cars, and have sucked my bank account dry. But here, my service and road coverage has all been well explained - and let up to me to decide. \nAnd they just renovated the waiting room. It looks a lot better than it did in previous years.


--------------------------------------------- Result 2 ---------------------------------------------
1 (61%) --> 2 (51%)
[[1 (61%)]] --> [[2 (51%)]]

Last summer I had an appointment to get new tires and had to wait a super long time. I also went in this week for them to fix a minor problem with a tire they put on. They \""fixed\"" it for free, and the very next morning I had the same issue. I called to complain, and the \""manager\"" didn't even apologize!!! So frustrated. Never going back. They seem overpriced, too.
Last summer I had an appointment to get new tires and had to wait a super long time. I also went in this week for them to fix a minor problem with a tire they put on. They \""fixed\"" it for free, and the very next morning I had the same issue. I called to complain, and the \""manager\"" didn't even apologize!!! So frustrated. Never going back. They [[seem]] overpriced, too.

Last summer I had an appointment to get new tires and had to wait a super long time. I also went in this week for them to fix a minor problem with a tire they put on. They \""fixed\"" it for free, and the very next morning I had the same issue. I called to complain, and the \""manager\"" didn't even apologize!!! So frustrated. Never going back. They look overpriced, too.
Last summer I had an appointment to get new tires and had to wait a super long time. I also went in this week for them to fix a minor problem with a tire they put on. They \""fixed\"" it for free, and the very next morning I had the same issue. I called to complain, and the \""manager\"" didn't even apologize!!! So frustrated. Never going back. They [[look]] overpriced, too.


--------------------------------------------- Result 3 ---------------------------------------------
2 (76%) --> 1 (63%)
[[2 (76%)]] --> [[1 (63%)]]

Friendly staff, same starbucks fair you get anywhere else. Sometimes the lines can get long.
[[Friendly]] staff, same starbucks fair you get anywhere else. Sometimes the lines [[can]] get long.

well-disposed staff, same starbucks fair you get anywhere else. Sometimes the lines behind get long.
[[well-disposed]] staff, same starbucks fair you get anywhere else. Sometimes the lines [[behind]] get long.



Expand Down
14 changes: 7 additions & 7 deletions tests/sample_outputs/run_attack_deepwordbug_lstm_mr_2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@
(2): StopwordModification
(is_black_box): True
)
/.*/

--------------------------------------------- Result 1 ---------------------------------------------
Positive (91%) --> Negative (69%)
[[Positive (91%)]] --> [[Negative (69%)]]

lovingly photographed in the manner of a golden book sprung to life , stuart little 2 manages sweetness largely without stickiness .
lovingly photographed in the manner of a golden book sprung to [[life]] , stuart little 2 [[manages]] [[sweetness]] largely without stickiness .

lovingly photographed in the manner of a golden book sprung to ife , stuart little 2 manager seetness largely without stickiness .
lovingly photographed in the manner of a golden book sprung to [[ife]] , stuart little 2 [[manager]] [[/.*/]] largely without stickiness .


--------------------------------------------- Result 2 ---------------------------------------------
Positive (99%) --> Negative (82%)
[[Positive (99%)]] --> [[Negative (82%)]]

consistently clever and suspenseful .
[[consistently]] [[clever]] and [[suspenseful]] .

conisstently celver and Huspenseful .
[[conisstently]] [[celver]] and [[Huspenseful]] .



Expand Down
14 changes: 7 additions & 7 deletions tests/sample_outputs/run_attack_faster_alzantot_recipe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@
)

--------------------------------------------- Result 1 ---------------------------------------------
Positive (90%) --> [FAILED]
[[Positive (90%)]] --> [[[FAILED]]]

the performances are immaculate , with roussillon providing comic relief .


--------------------------------------------- Result 2 ---------------------------------------------
Positive (98%) --> Negative (57%)
[[Positive (98%)]] --> [[Negative (57%)]]

kinnear . . . gives his best screen performance with an oddly winning portrayal of one of life's ultimate losers .
kinnear . . . gives his [[best]] screen performance with an [[oddly]] winning [[portrayal]] of one of life's [[ultimate]] [[losers]] .

kinnear . . . gives his higher screen performance with an interestingly winning description of one of life's final mugs .
kinnear . . . gives his [[higher]] screen performance with an [[interestingly]] winning [[description]] of one of life's [[final]] [[mugs]] .


--------------------------------------------- Result 3 ---------------------------------------------
Positive (83%) --> Negative (51%)
[[Positive (83%)]] --> [[Negative (51%)]]

hugh grant , who has a good line in charm , has never been more charming than in about a boy .
hugh grant , who has a good line in charm , has never been more [[charming]] than in about a boy .

hugh grant , who has a good line in charm , has never been more loveable than in about a boy .
hugh grant , who has a good line in charm , has never been more [[loveable]] than in about a boy .



Expand Down
26 changes: 13 additions & 13 deletions tests/sample_outputs/run_attack_flair_pos_tagger_bert_score.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,37 @@
(3): StopwordModification
(is_black_box): True
)
/.*/

--------------------------------------------- Result 1 ---------------------------------------------
Positive (100%) --> Negative (98%)
[[Positive (100%)]] --> [[Negative (98%)]]

exposing the ways we fool ourselves is one hour photo's real strength .
exposing the ways we fool ourselves is one [[hour]] photo's real [[strength]] .

exposing the ways we fool ourselves is one stopwatch photo's real kraft .
exposing the ways we fool ourselves is one [[stopwatch]] photo's real [[kraft]] .


--------------------------------------------- Result 2 ---------------------------------------------
Positive (96%) --> Negative (99%)
[[Positive (96%)]] --> [[Negative (99%)]]

it's up to you to decide whether to admire these people's dedication to their cause or be repelled by their dogmatism , manipulativeness and narrow , fearful view of american life .
it's up to you to decide whether to admire these people's dedication to their cause or be [[repelled]] by their dogmatism , manipulativeness and narrow , [[fearful]] view of american life .

it's up to you to decide whether to admire these people's dedication to their cause or be rescheduled by their dogmatism , manipulativeness and narrow , shitless view of american life .
it's up to you to decide whether to admire these people's dedication to their cause or be [[rescheduled]] by their dogmatism , manipulativeness and narrow , [[shitless]] view of american life .


--------------------------------------------- Result 3 ---------------------------------------------
Positive (100%) --> Negative (96%)
[[Positive (100%)]] --> [[Negative (96%)]]

mostly , [goldbacher] just lets her complicated characters be unruly , confusing and , through it all , human .
mostly , [goldbacher] just lets her complicated characters be [[unruly]] , confusing and , through it all , [[human]] .

mostly , [goldbacher] just lets her complicated characters be haphazard , confusing and , through it all , humanistic .
mostly , [goldbacher] just lets her complicated characters be [[haphazard]] , confusing and , through it all , [[humanistic]] .


--------------------------------------------- Result 4 ---------------------------------------------
Positive (99%) --> Negative (90%)
[[Positive (99%)]] --> [[Negative (90%)]]

. . . quite good at providing some good old fashioned spooks .
. . . [[quite]] good at [[providing]] some good old fashioned [[spooks]] .

. . . rather good at provision some good old fashioned bugging .
. . . [[rather]] good at [[provision]] some good old fashioned [[bugging]] .



Expand Down

0 comments on commit 2ebbab0

Please sign in to comment.