Python - can I detect unicode string language code?

前端 未结 7 2074
遇见更好的自我
遇见更好的自我 2020-11-27 16:29

I\'m faced with a situation where I\'m reading a string of text and I need to detect the language code (en, de, fr, es, etc).

Is there a simple way to do this in py

7条回答
  •  广开言路
    2020-11-27 16:57

    Look at Natural Language Toolkit and Automatic Language Identification using Python for ideas.

    I would like to know if a Bayesian filter can get language right but I can't write a proof of concept right now.

提交回复
热议问题