codebasics/nlp-tutorials

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

gitezri opened this issue · 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 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!