Awesome
Adv-OLM: Generating Textual Adversaries via OLM
This repository will contain the code for our EACL 2021 paper:<br><br> Adv-OLM: Generating Textual Adversaries via OLM <a href="https://arxiv.org/pdf/2101.08523.pdf"> [Link to Paper]</a>
Environment setup
- For running in your system:
conda create -n advolm python=3.6
conda activate advolm
pip install -r requirements.txt
- For running on colab:
pip install -r requirements.txt
Example code run
python attack_main.py --recipe advolm --batch-size 8 --num-examples 5 --model bert-base-uncased-imdb
- For running other attacks like Textfooler, Bae, Pwws, etc., use TextAttack
Citation
@misc{malik2021advolm,
title={Adv-OLM: Generating Textual Adversaries via OLM},
author={Vijit Malik and Ashwani Bhat and Ashutosh Modi},
year={2021},
eprint={2101.08523},
archivePrefix={arXiv},
primaryClass={cs.CL}
}