Planeshifter / node-word2vec

Node.js interface to the Google word2vec tool.
Apache License 2.0
348 stars 55 forks source link

Inform the user when file extension is not handled via `error` in `callback` #27

Open kungfooman opened 1 year ago

kungfooman commented 1 year ago

I downloaded a file which used the extension .vec for the ASCII vectors instead of .txt and it just silently failed, which is not a good user experience.

So this PR will warn the user with a proper error message (that the file extension should be either .bin or .txt).