Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gitezri opened this issue Apr 29, 2023 · 1 comment

Comments

@gitezri
Copy link

gitezri commented Apr 29, 2023

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'

@AbdullahKhanKakar
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants