loretoparisi / fasttext.js

FastText for Node.js
MIT License
192 stars 28 forks source link

better error message when .bin is not found on load() #15

Closed bittlingmayer closed 6 years ago

bittlingmayer commented 6 years ago

Right now it's the following:

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:851:14)
loretoparisi commented 6 years ago

@bittlingmayer thank you to point this out! I have added a file check and an error message/code. https://github.com/loretoparisi/fasttext.js#external-binary

bittlingmayer commented 6 years ago

You should push that to https://www.npmjs.com/package/fasttext.js by the way.

loretoparisi commented 6 years ago

@bittlingmayer right, thanks I have to.

loretoparisi commented 6 years ago

@bittlingmayer done published with the latest features: train progress tracking and some utilities like confusion matrix calculation!

bittlingmayer commented 6 years ago

Great, thanks!