Skip to content
Language detector implemented in Python
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
knowledge
samples
README.markdown
languess.py
sample.py
train.py

README.markdown

Language detector

This is just another implementation of the language detector using n-grams. I also wrote a PHP Native version (in fact just a wrapper to an existed library).

Webservice

I created a webservice hosted on the Google AppEngine in a free account, you might use it however you wish. The app. itself is pretty easy to use, in fact it is just an URL with a text parameter via GET.

http://textlang.appspot.com/service?text=TEXT_TO_CAT

The application returns an JSON object with the language(s) that it detected. In case of error it will return an error attribute.

In other to get better results, you might send text with a length between 50 and 2000 letters.

Something went wrong with that request. Please try again.