开发者

searching for language recognition library in Python or web service

开发者 https://www.devze.com 2023-04-12 10:40 出处:网络
Is there any tool that provides language recognition functionality? Like if I input a sentence of English, it will suggest that the string may be English.

Is there any tool that provides language recognition functionality?

Like if I input a sentence of English, it will suggest that the string may be English.

I think I need one of the following stuff.

  1. Python language recognition library.
  2. Web service开发者_StackOverflow社区 that provides such functionality.

Anyone can help?


I have used the GuessLanguage module pretty extensively. It detects 100+ languages and works really well for LONG pieces of text. English is very good. Other languages I am not sure. If you want to process short sentences at a time or tweets it is pretty bad as it was designed for doing detection on full articles.

My company (social media analytics) is currently looking for a replacement package as well and are exploring NLTK as an option.


Have you tried nltk? See this SO question for further information.

There is also a web service from xerox which claims to do what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号