Skip to content

Latest commit

 

History

History

squad

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Attacking SQuAD Models

Files and Usage

This folder contains the following files:

  • squad.py Creates the triggers using the optimization procedure described in the paper.
  • universal_adversarial_sentences.txt contains the adversarial sentences used in the paper. You can copy and paste these into the variable adv_token_idxs in squad.py to test out different attacks.

Models

We have pre-trained models available for use (see squad.py for how to use a model archive):