dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.56k stars 538 forks source link

Load custom pre-trained Fasttext model #1206

Closed Avi197 closed 4 years ago

Avi197 commented 4 years ago

Does gluon-nlp support custom pre-trained Fasttext model? I want to use a few functions of gluon but i don't want to train a new model

Thanks in advance

leezu commented 4 years ago

You can use the https://github.com/dmlc/gluon-nlp/blob/3f7465ab5d0f926c2c6f424644daaa30668570ba/src/gluonnlp/model/train/embedding.py#L229

Please reopen if you run into any problems or have other questions