jind11/TextFooler

Questions about string cleaning

Opened this issue · 1 comments

Thanks for this solid work.
In the clean_str, it seems that Every dataset is lower cased except for TREC but in the example, in Table 6 the sentence is cased. This looks like a conflict to me.

def clean_str(string, TREC=False):

Also in clean_str say Tokenization/string cleaning for all datasets except for SST.
Did you train the model on a cleaned uncased dataset but test it on a cased raw dataset? But the split 1000 dataset in 'data' is uncased. I'm really confused. Is there something I have missed?
I apologize that I didn't go through your code before directly asking the question. That would be very generous and helpful. Thanks in advance~

hi, I am so sorry for the late response. Actually the attack is conducted on uncased text in experiments and I formatted the text to cased one in Table 6 just for better looking in the paper. Let me know if you have more questions.