aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.28k stars 337 forks source link

translate English into Chinese #263

Closed arry-lee closed 1 year ago

arry-lee commented 1 year ago

I tried to translate English into Chinese, and found that the result was only Chinese characters with similar pronunciation, not a complete sentence at all, not even a correct word.

from polyglot.text import Text
blob = """We will meet at eight o'clock on Thursday morning."""
text = Text(blob)

for x in text.transliterate("zh"):
    print(x)

韦 维尔 梅埃特 阿特 埃伊格赫特 奥克洛克 昂 特胡尔斯达伊 摩尼恩格