nlp-tutorials icon indicating copy to clipboard operation
nlp-tutorials copied to clipboard

ModuleNotFoundError: No module named 'fasttext' (18_fasttext_classificatin)

Open gitezri opened this issue 2 years ago • 1 comments

ModuleNotFoundError Traceback (most recent call last) Cell In[19], line 1 ----> 1 import fasttext 3 model = fasttext.train_supervised(input="ecommerce.train") 4 model.test("ecommerce.test")

ModuleNotFoundError: No module named 'fasttext'

gitezri avatar Apr 29 '23 22:04 gitezri

@gitezri I see the error you are facing:

You need to download fasttext library. For doing it, if you are working in Jupyter notebook then run this command: !pip install fasttext

But if you are not in Jupyter Notebook compiler and using any other compiler such as VS Code, Pycharm etc, then run this command: pip install fasttext

Only difference in both these commands is of !(exclamation mark). Hope you understand it well!

AbdullahKhanKakar avatar Mar 17 '24 06:03 AbdullahKhanKakar