Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV error on big models #24

Open
aralroca opened this issue Mar 31, 2021 · 1 comment
Open

SIGSEGV error on big models #24

aralroca opened this issue Mar 31, 2021 · 1 comment

Comments

@aralroca
Copy link

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
Copy link
Author

Node version v14.15.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant