Skip to content

militia-io/docker-langid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

docker-langid

Dockerized RESTful API for language identification using langid.py. Returns the text's indentified language with a confidence score in JSON.

To start the server:

docker run mbartoli/langid python langid.py -s

To classify a string of text:

curl -d "Io non parlo italiano" [SERVER_IP_ADDRESS_GOES_HERE]:9008/detect

To classify a text file:

curl -T [FILE_LOCATION_GOES_HERE] [SERVER_IP_ADDRESS_GOES_HERE]:9008/detect

See https://github.com/saffsd/langid.py for additional implementation details.

About

Dockerized RESTful API for language identification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages