FastText-由于C ++扩展未能分配内存而无法加载model.bin [英] FastText - Cannot load model.bin due to C++ extension failed to allocate the memory
问题描述
我正在尝试使用FastText Python API https://pypi.python.org/pypi/fasttext 虽然,据我所读,该API无法在 https://github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md /salestock/fastText.py/issues/115"rel =" noreferrer> https://github.com/salestock/fastText.py/issues/115
I'm trying to use the FastText Python API https://pypi.python.org/pypi/fasttext Although, from what I've read, this API can't load the newer .bin model files at https://github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md as suggested in https://github.com/salestock/fastText.py/issues/115
我已经尝试了解决该问题的所有建议,此外, https://github.com/Kyubyong/wordvectors 没有用于英语的.bin,否则该问题将得到解决.有谁知道解决方法?
I've tried everything that is suggested at that issue, and furthermore https://github.com/Kyubyong/wordvectors doesn't have the .bin for English, otherwise the problem would be solved. Does anyone know of a work-around for this?
推荐答案
您不能使用pip安装的软件包 fasttext
.您可以使用 fasttext
存储库中的install fastText
(大写T).
You can't use the package fasttext
installed by pip. You use install fastText
(capital T) from fasttext
repo.
这篇关于FastText-由于C ++扩展未能分配内存而无法加载model.bin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!