jind11 / TextFooler

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

The counter-fitting word embeddings #21

Closed Palipoor closed 4 years ago

Palipoor commented 4 years ago

Hi, This is more of a question than a real issue. I'm trying to attack a model with your code but I'm not sure what "the counter-fitting word embeddings" file should be like. Can you give an example? Thanks

jind11 commented 4 years ago

hi, the format of the "counter-fitting word embeddings" is the same as a normal "word embedding", where in each line, there is a token followed by many float numbers.

Palipoor commented 4 years ago

Thanks!