Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

sai4july/TaiChi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Taichi

This repo contains source code for "TaiChi: Improving the Robustness of NLP Models by Seeking Common Ground While Reserving Differences" (accepted to COLING 2024)

Environment Configuration

python version == 3.7.13
pip install -r requirement.txt

How to run Taichi?

python main.py
--dataset sst2
--adv_attack textfooler

How to evaluete Taichi?

cd Textattack/trec

textattack attack
--model-from-file "my_model.py"
--dataset-from-file "my_dataset.py"
--recipe textfooler
--num-examples 1000
--log-to-csv "output/textfooler_test.csv"

About

Code for TaiChi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages