Sign inSign up

mbartoli/langid

By mbartoli

Updated over 10 years ago

Language identification with optional server using langid.py

Image
1

10K+

mbartoli/langid repository overview

langid

Dockerfile for language identification, based on 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.

Tag summary

Content type

Image

Digest

sha256:ee6b09934

Size

209.9 MB

Last updated

over 10 years ago

docker pull mbartoli/langid