nkthiebaut / zeugma

📝Natural language processing (NLP) utils: word embeddings (Word2Vec, GloVe, FastText, ...) and preprocessing transformers, compatible with scikit-learn Pipelines. 🛠
MIT License
60 stars 4 forks source link

Error when loading embeddings model from local file... #27

Open oterrier opened 2 years ago

oterrier commented 2 years ago

If the file path contains upper case characters then it is not recognized because the EmbeddingTransformer __init__ method does a conversion to lower case before testing the os.path.exists(model)

Best regards

Olivier Terrier

nkthiebaut commented 1 year ago

Good catch, we could move the os.path.exists(model) test up to fix this issue. I'll fix it if I have time, but feel free to raise a PR if you do first.