jind11 / TextFooler

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

Implementation on other dataset #29

Closed ShuangNYU closed 4 years ago

ShuangNYU commented 4 years ago

Hi! I want to implement TextFooler on other data set, and I have a pretrained classifier with bert model pytorch_model.bin. I created a new folder in a directory and used it as --target_model_path. In this folder I put bert_config.json in, but I wonder if vocal.txt is the same for all pretrained models. For example, can I use the bert-base-uncased-vocal.txt directly?

jind11 commented 4 years ago

I am sorry but do you still have this question?

ShuangNYU commented 4 years ago

I am sorry but do you still have this question?

Thanks! I set the vocal.txt as above, and the results make sense, so I think it works.