Code for Semantically Equivalent Adversarial Rules for Debugging NLP Models


Run the following:

git clone
cd sears
virtualenv -p python3 ENV
source ENV/bin/activate
pip install editdistance keras numpy jupyter tensorflow-gpu==1.3.0 torchtext==0.1.1 spacy==1.9.0
pip install
python -m ipykernel install --user --name=sears
python -m spacy download en
git clone
cd OpenNMT-py/
python install
cd ..

Download and unpack the translation models into the translation_models folder.

Run jupyter notebook, change kernel to sears, and run the notebook :)