node-fasttext icon indicating copy to clipboard operation
node-fasttext copied to clipboard

SIGSEGV error on big models

Open aralroca opened this issue 4 years ago • 1 comments

I see that there is an error when loading big models. I used the cc.en.300.bin example of the fastText webpage:

https://fasttext.cc/docs/en/crawl-vectors.html

Used code:

const path = require('path');
const fastText = require('fasttext');

const model = path.resolve(__dirname, './cc.en.300.bin');
const query = new fastText.Query(model);

query.nn('salmon', 5)
  .then(r => console.log(r))
  .catch(e => console.log('Error', e))

Error on execute:

error Command failed with signal "SIGSEGV".

aralroca avatar Mar 31 '21 11:03 aralroca

Node version v14.15.5

aralroca avatar Mar 31 '21 11:03 aralroca