Open please-wait opened 7 years ago
Hello,
I faced a similar issue when using another pre-trained file. The problem was that loadModel
read the model file as a binary file although it's actually a plain text.
loadModel
distinguishes whether the model file is binary using mime.lookup(file)
. I fixed the problem by changing the extension of the model file from .bin
to .txt
.
Thanks a lot @pizzacat83 for sharing your solution. I'll give it a try as soon as I can.
Hi,
First of all, thanks for the awesome work!
I am trying to import the pre-trained files from the fasttext repo: https://github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md
The model loads without a problem; however, when I try
mostSimilar
, the most similar words appear to be numbers:I also tried
hello
it says it is out of the dictionary. How can I import the Fasttext files so that this won't happen?