-
Notifications
You must be signed in to change notification settings - Fork 401
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 incorrect __eq__
method of AttackedText
in textattack/shared/attacked_text.py
#509
Conversation
minor format issue
@cogeid please review |
@wenh06 thanks for the PR. What is the purpose of "added DownloadConfig in textattack/datasets/huggingface_dataset.py to try to use a proxy for downloading things from huggingface."? What purpose is this addition for? |
My direct connection to github (huggingface datasets download things from |
@wenh06 Thank you for the PR!
@qiyanjun I think the changes in |
download config was added in previous 2 commits, which is useless for most of the people, hence is removed.
|
@wenh06 Thanks a lot! Ready to merge after checks. |
@wenh06 can you fix the formatting errors / then the pytest errors? thanks |
These errors are caused by recent updates of |
Almost all errors happened during
|
Looks like the workflow is still loading in the broken |
Let me rerun the workflow
…Sent from my iPhone
On Sep 9, 2021, at 16:44, Sanchit Sinha ***@***.***> wrote:
Looks like the workflow is still loading in the broken black package.
One simple fix would be to create a new PR and discard this one because Actions would be forced to re-run from scratch. (The issue has been fixed from their end)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
May I can add several commits, since I found some other typos. |
there's no member fout in the CSVLogger, and there's no fout assigned to instances of CSVLogger elsewhere in Textattack
I fixed #526 here @jxmorris12 |
Thanks @wenh06 - LGTM! running the tests now |
@Hanyu-Liu-123 mind helping me check this for one more time? |
no problem! |
What does this PR do?
Summary
fix incorrect
__eq__
method ofAttackedText
intextattack/shared/attacked_text.py
Another thing is that I addedDownloadConfig
intextattack/datasets/huggingface_dataset.py
to try to use a proxy for downloading things from huggingface. This is irrelevant to this pull request.Additions
__eq__
method ofAttackedText
, an additional check of equal number of dict items ofattack_attrs
is added. If this correction was not done, the__eq__
is incorrect, as illustrated in the following examplewhose outcome would be
Changes
Deletions
Checklist
.rst
file inTextAttack/docs/apidoc
.'