Skip to content

vijit-m/Adv-OLM

Repository files navigation

Adv-OLM: Generating Textual Adversaries via OLM

This repository will contain the code for our EACL 2021 paper:

Adv-OLM: Generating Textual Adversaries via OLM [Link to Paper]

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}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages