Search code examples
pythonfasttext

fasttext' has no attribute 'train_supervised' on Windows 10


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


Solution

  • 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"