FastText - 无法加载model.bin,因为C++扩展无法分配内存

Fil*_*ixo 9 python nlp embedding fasttext

我正在尝试使用FastText Python API https://pypi.python.org/pypi/fasttext虽然,根据我的阅读,此API无法加载较新的.bin模型文件https:// github .ps/facebookresearch/fastText/blob/master/pretrained-vectors.md,https://github.com/salestock/fastText.py/issues/115中所述

我已经尝试了在该问题上建议的所有内容,而且https://github.com/Kyubyong/wordvectors没有.bin用于英语,否则问题将得到解决.有没有人知道这方面的解决方法?

小智 2

请尝试执行以下步骤来解决该问题。它在加载语言识别模型时与我一起使用 Python 3.5。

git clone https://github.com/facebookresearch/fastText.git
cd fastText
pip install .
Run Code Online (Sandbox Code Playgroud)