-
Notifications
You must be signed in to change notification settings - Fork 197
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
Negated antonym #255
base: main
Are you sure you want to change the base?
Negated antonym #255
Conversation
Hi @Mayukhga83 Correctness: No checks performed (1 workflow awaiting approval) |
Have added Robustness Metric and Key word |
I'm also a reviewer for this task. I agree with @marco-digio's comments; this transformation certainly adds functionality to the project that #222 and #150 don't, but given that all three perform similar tasks and use the same library for identifying antonyms, it'd make the project cleaner if they were consolidated. @kaustubhdhole, do you have an opinion as to whether these PRs should be combined? Aside from that, I have a few other minor comments that should be addressed before merging. Here's a list:
Let me know if you have any questions! |
@james-simon , @ashish3586 and @marco-digio Sorry for the late reply,
|
This will benefit for robustness of text classification like sentiment analysis, etc. | ||
|
||
|
||
## What are the limitations of this transformation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This transformation is unfortunately the same as #222 as it too uses negated antonyms. @Mayukhga83 is there anything different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaustubhdhole unfortunately yes except for the 'not' word as @marco-digio pointed. Secondly, this always does double negation for both even and odd number of adjective unlike #222 which only does it for even number of adjective words.
As the addition of 'not' gives a better robustness score than #222 (I have only checked for roberta-base-imdb) , It could be merged as a special case of the other PR if suited.
Added a novel perturbation named negated antonym perturbation. This perturbation changes and adjective or adverb to its negated antonym, and thereby preserving the semantics.