-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
This script:
from pythainlp.transliterate import romanize
A = "สวัสดี ครับ"
B = "คุณ ชื่อ อะไร ครับ"
A_B = "สวัสดี ครับ คุณ ชื่อ อะไร ครับ"
print(romanize(A, engine="thai2rom"))
print(romanize(B, engine="thai2rom"))
print(romanize(A_B, engine="thai2rom"))
for z in A_B.split(' '):
roman = romanize(z, engine="thai2rom")
print(roman, ' ', end="")
Prints out:
sawatdi khrap
khun chue arai khrap
sawatdi khrap khun chuen chuen chuen chuen chuen chuen chuen chuen chuen chuen chuen chuen chuen chu
sawatdi khrap khun chue arai khrap
bact
Metadata
Metadata
Assignees
Labels
No labels