matanster / simple-fasttext-server

a simple proof-of-concept fasttext classification REST server ― not by any means production ready

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-fasttext-server

You send a REST GET with some text, and get a classification for it.
Work In Progress.

Installation

  1. install leiningen
  2. clone this repo
  3. change directory to the included directory fasttext.
  4. git clone fasttext here.
  5. place your trained fasttext model here as well (should be named classifier.bin).
  6. lein run (takes few seconds to start up)

Usage

curl 'http://localhost:3000/predict?text=classify%20me'

Or your whatever http get API.

About

a simple proof-of-concept fasttext classification REST server ― not by any means production ready


Languages

Language:Clojure 100.0%