A JSON/HTTP service.
Takes input text and tries to determine the language. Uses cld2: https://github.com/CLD2Owners/cld2.git
Implements: https://biosphere.cc/software-engineering/natural-language-detection-in-go/
Checkout Dockerfile
$ ./language-detector
Here is an example request:
$ curl -d '{"request": [{"text": "This is an example input message."}]}' -H 'content-type: application/json' localhost:3000
$ make test
- Generate known languages file in data/ using gen_codes.py