jind11 / TextFooler

A Model for Natural Language Attack on Text Classification and Inference
MIT License
485 stars 79 forks source link

Questions about the dataset #46

Open Youoo1 opened 2 years ago

Youoo1 commented 2 years ago

Thank you for the open source code. I am a graduate student just entering the field of textual attacks. I recently came across the paper and would like to reproduce it to see the effect. There are a few simple questions I would like to ask you. 1. should the model be trained in the order of the readme.txt? I think some details are omitted. 2. The format of the data demo is different from that required in the code, so can you conveniently tell me what to do with it?

image

jind11 commented 2 years ago

Here are answers: 1. Trained target models have been provided here: https://drive.google.com/drive/folders/1N-FYUa5XN8qDs4SgttQQnrkeTXXAXjTv so you do not need to train models again; 2. For running the code, you can refer to this code sample: https://github.com/jind11/TextFooler/blob/master/run_attack_classification.py and change those data or embedding paths according to your local folder path.