undertheseanlp / underthesea

Underthesea - Vietnamese NLP Toolkit
http://undertheseanlp.com
GNU General Public License v3.0
1.35k stars 270 forks source link

Underthesea 6.8.3 requires fasttext on import but the dependency is missing #740

Closed BLKSerene closed 3 weeks ago

BLKSerene commented 3 weeks ago

When importing Underthesea 6.8.3:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import fasttext
ModuleNotFoundError: No module named 'fasttext'

There is no issue with Underthesea 6.8.0

rain1024 commented 3 weeks ago

@BLKSerene, which module did you use, and can you share your code?

BLKSerene commented 3 weeks ago

A simple import:

import underthesea
BLKSerene commented 3 weeks ago

Seems that this has been fixed by the re-released 6.8.3.

rain1024 commented 3 weeks ago

@BLKSerene Actually, you're correct.

Without fasttext, importing underthesea v6.8.3 shows an unwanted error log:

>>> import underthesea
No module named 'fasttext'

2024-06-22, I have released a hotfix version (v6.8.4) with optimized import. This issue no longer appears.