Skip to content

translate

Wannaphong Phatthiyaphaibun edited this page Sep 23, 2021 · 3 revisions

translate

Now, LaoNLP supports word dictionary only.

  • word_dictionary(word: str, src: str, target: str, name: str = "mopt_laos")

We use word dictionary from Ministry of Posts and Telecommunications (MOPT), Laos

Thank you data source from https://github.com/google/language-resources/

example

from laonlp.translate import word_dictionary

print(word_dictionary("zoo", "eng", "lao")) # ['ສວນສັດ']
print(word_dictionary("ສວນສັດ", "lao", "eng")) # ['zoo']
Clone this wiki locally