You send a REST GET with some text, and get a classification for it.
Work In Progress.
- install leiningen
- clone this repo
- change directory to the included directory
fasttext
. - git clone fasttext here.
- place your trained fasttext model here as well (should be named
classifier.bin
). lein run
(takes few seconds to start up)
curl 'http://localhost:3000/predict?text=classify%20me'
Or your whatever http get API.