Eric-Wallace / universal-triggers

Universal Adversarial Triggers for Attacking and Analyzing NLP (EMNLP 2019)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sentiment word filtering for sst attack

Danielpark1239 opened this issue · comments

Hi Eric, I'm looking at your paper for a school project and was wondering if you had the code to filter positive/negative sentiment words for the triggers generated during the sst attack. Any help would be appreciated!

Hey I don't have this code available anymore. It should be somewhat straightforward to implement it. You can grab a sentiment dictionary, and then just filter through the candidate words returned by the attack and delete those that are in the dictionary.

Thanks for the quick response on an old repo! I'll try doing that.