pythainlp.romanization
The romanization.romanization
turns thai text into a romanized one (put simply, spelled with English).
-
pythainlp.romanization.
romanization
(data, engine='royin')[source]
- Parameters
data (str) – Thai text to be romanized
engine (str) – choose between ‘royin’ , ‘pyicu’ and ‘thai2rom’. ‘royin’ will romanize according to the standard of Thai Royal Institute. ‘pyicu’ will romanize according to the Internaitonal Phonetic Alphabet. ‘thai2rom’ is deep learning thai romanization.
- Returns
English (more or less) text that spells out how the Thai text should read.
-
class
pythainlp.romanization.thai2rom.
thai2rom
[source]
-
romanization
(text)[source]
- Parameters
text (str) – Thai text to be romanized
- Returns
English (more or less) text that spells out how the Thai text should read.