0

I installed fasttext manually and also installing it using pip install. But when I use this code model = fastText.train_supervised(input=training_data_path, **hyper_params)

output: No module named 'fastText'

Also this code: model = fasttext.train_supervised(input=training_data_path, **hyper_params)

output: fasttext' has no attribute 'train_supervised'

I already installed and follow the documentation still no fix

4
  • Please share the output of dir (fasttext) Commented Dec 1, 2020 at 7:51
  • @anakin87 "C:\Users\Akio\anaconda3\Lib\site-packages\fasttext" Commented Dec 1, 2020 at 10:59
  • I mean in python: import fasttext then dir (fasttext) Commented Dec 1, 2020 at 11:12
  • @anakin87 I Already fix it by Renaming the fasttext folder into fastText Commented Dec 1, 2020 at 11:22

1 Answer 1

1

Copied the folder named fasttext in anaconda site-packages dir and paste it in site-packages of Python dir and renaming it by:

orig name: "fasttext"

changes: "fastText"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.