aboSamoor / polyglot

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

Transliteration #194

Open win32nipuh opened 5 years ago

win32nipuh commented 5 years ago

Transliteration from polyglot.transliteration import Transliterator transliterator = Transliterator(source_lang="en", target_lang="ru") print(transliterator.transliterate(u"preprocessing"))

препрокессинг

препроцессинг

victorbartel commented 4 years ago

Your main page transliteration example is wrong. May be, it's worth to precise that there are some more complex transliteration rules than expected. Not all Latin C should transliterate to Russian К, sometimes it gives Ц. The complexity works in both ways, so К gives K and C.