makcedward / nlpaug

Data augmentation for NLP
https://makcedward.github.io/
MIT License
4.44k stars 463 forks source link

Using Offline models #299

Closed chechu-arias closed 2 years ago

chechu-arias commented 2 years ago

Hi, I wanted to use local models downloaded from HuggingFaces, but I haven't seen any issue or anything in the documentation about this. Is this doable right now? You can use a word2vec model saved locally, but can you use local models with BackTranslation for example?

chechu-arias commented 2 years ago

For anyone wondering, if you download the model and indicate a path to the directory with everything from model and tokenizer downloaded, it works just fine.