Mario Zechner on Nostr: Was annoyed at the state of language identification in NodeJS. fasttext.js is a mess. ...
Was annoyed at the state of language identification in NodeJS. fasttext.js is a mess.
https://github.com/badlogic/fasttext-lid-server
So I wrote a little C++ HTTP server that directly links to the fasttext C++ library. Compile easily, or use via Docker (Compose).
wrk -t8 -c50 -d10s "http://lid:10000/detect?text=Hello+you";
~9000 reqs/s
https://github.com/badlogic/fasttext-lid-server
So I wrote a little C++ HTTP server that directly links to the fasttext C++ library. Compile easily, or use via Docker (Compose).
wrk -t8 -c50 -d10s "http://lid:10000/detect?text=Hello+you";
~9000 reqs/s