Detect language of text [duplicate]

2019-01-18 02:57发布

This question already has an answer here:

Is there any C# library which can detect the language of a particular piece of text? i.e. for an input text "This is a sentence", it should detect the language as "English". Or for "Esto es una sentencia" it should detect the language as "Spanish".

I understand that language detection from text is not a deterministic problem. But both Google Translate and Bing Translator have an "Auto detect" option, which best-guesses the input language. Is there something similar available publicly, preferably in C#?

7条回答
smile是对你的礼貌
2楼-- · 2019-01-18 03:31

There is a simple tool to identify text language: http://www.detectlanguage.com/

查看更多
登录 后发表回答