replace fasttext.py with the official https://github.com/facebookresearch/fastText/tree/master/python
replace fasttext.py with the official https://github.com/facebookresearch/fastText/tree/master/python