Language Detection Library/Code

Katie T katie at coderstack.co.uk
Mon Dec 27 19:33:50 EST 2010


On Mon, Dec 27, 2010 at 7:10 PM, Shashwat Anand
<anand.shashwat at gmail.com> wrote:
> Can anyone suggest a language detection library in python which works on a
> phrase of say 2-5 words.

Generally such libraries work by bi/trigram frequency analysis, which
means you're going to have a fairly high error rate with such small
phrases. If you're only dealing with a handful of languages it may
make more sense to combine an existing library with a simple
dictionary lookup model to improve accuracy.

Katie
-- 
CoderStack
http://www.coderstack.co.uk/perl-jobs-in-london
The Software Developer Job Board



More information about the Python-list mailing list