language-detector

command module
v0.0.0-...-6856191 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2016 License: MIT Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL