Skip to content

LilyNLP/ADFAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ADFAR

This is the code for our long paper:

Defending Pre-trained Language Modelsfrom Adversarial Word Substitution Without Performance Sacrifice

Accepted to Findings of ACL 2021.

Dependencies

TextFooler

Usage

Download counter-fitted-vectors.txt and then put it in '/src/TextFooler/'. Download USE and then put it in '/src/TextFooler/'.

Then you can run the run_MR_pipeline.py to see how the pipeline works and gets the defense performance on MR dataset as an example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages