On Mon, Dec 27, 2010 at 7:10 PM, Shashwat Anand <anand.shash...@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 -- http://mail.python.org/mailman/listinfo/python-list