-
-
Notifications
You must be signed in to change notification settings - Fork 5
translate
Wannaphong Phatthiyaphaibun edited this page Sep 23, 2021
·
3 revisions
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']