jind11 / TextFooler

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

About pytorch_pretrained_bert #7

Closed lexmen318 closed 4 years ago

lexmen318 commented 4 years ago

Hi, Do you consider migrating it to transformers according to the guide of Huggingface's github.

thx a lot!

jind11 commented 4 years ago

hi, what do you mean by "migrating to transformers"? Thanks!

lexmen318 commented 4 years ago

I found the trained BERT models are based on "pytorch_pretrained_bert", however "pytorch_pretrained_bert" has been update to "pytorch_transformers" and then to "transformers". So I suggest you to migrate the package according to following guides: https://github.com/huggingface/transformers#Migrating-from-pytorch-transformers-to-transformers

jind11 commented 4 years ago

I think it is not that hard, I can finish this after my ddl on 12/9.

lexmen318 commented 4 years ago

Thank you very much!