Closed KangHyeongMin closed 6 years ago
@KangHyeongMin thanks for point this out. I have also updated the docs in the case you want to serve a specific model:
$ cd examples/
$ export MODEL=data/lid.176.ftz
$ node server.js
model loaded
server is listening on 3000
Basically you have to export the MODEL
env to point to the model to load, after that you should be able to call http://localhost:3000/?text=LBi%20Software%20provides%20precisely%20engineered,%20customer-focused%20#HRTECH
Closing this then since fixed by PR https://github.com/loretoparisi/fasttext.js/pull/8
Steps to reproduce
$ node examples/train.js
$ node examples/server.js
Expected behaviour
Server starting with below message
Actual behaviour
Fail to start server with below message
I wll fix and make PR