Skip to content

hengdashi/Phrase_Level_Text_Attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS 269 Project: Phrase Level Textual Adversarial Attack

This is the repo for the class project of CS 269 @ UCLA.

Setup (without GPU)

conda create -y --name cs269 python=3.8.5
conda activate cs269
cd /path/to/project/root/
pip install -r requirements.txt
pip install -e .
python -m spacy download en_core_web_lg

Setup (with GPU)

conda create -y --name cs269 python=3.8.5
conda activate cs269

cd /path/to/project/root/
# install gpu version with cuda 11.0
pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
pip install -e .
python -m spacy download en_core_web_lg

About

Phrase level adversarial attack on NLP model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published