Skip to content

bottlenose-inc/language-detector

Repository files navigation

Overview

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/

How to Build

Checkout Dockerfile

How to Run

$ ./language-detector

Here is an example request:

$ curl -d '{"request": [{"text": "This is an example input message."}]}' -H 'content-type: application/json' localhost:3000

How to Test

$ make test

Notes

  • Generate known languages file in data/ using gen_codes.py

About

Wraps CLD2 with go into a JSON/HTTP microservice.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published