859a6ddb6abf4e9e7848be9160195a0ba080f13e,pythainlp/util/keyboard.py,,eng_to_thai,#Any#,104
Before Change
return "".join(
[EN_TH_KEYB_PAIRS[ch] if (ch in EN_TH_KEYB_PAIRS) else ch for ch in text]
)
After Change
>>> eng_to_thai("Tok8kicsj"xitgmLwmp")
ธนาคารแห่งประเทศไทย
return text.translate(EN_TH_TRANSLATE_TABLE)
def thai_to_eng(text: str) -> str:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: PyThaiNLP/pythainlp
Commit Name: 859a6ddb6abf4e9e7848be9160195a0ba080f13e
Time: 2019-09-30
Author: 6845502+abhabongse@users.noreply.github.com
File Name: pythainlp/util/keyboard.py
Class Name:
Method Name: eng_to_thai
Project Name: PyThaiNLP/pythainlp
Commit Name: 859a6ddb6abf4e9e7848be9160195a0ba080f13e
Time: 2019-09-30
Author: 6845502+abhabongse@users.noreply.github.com
File Name: pythainlp/util/keyboard.py
Class Name:
Method Name: thai_to_eng
Project Name: PyThaiNLP/pythainlp
Commit Name: 859a6ddb6abf4e9e7848be9160195a0ba080f13e
Time: 2019-09-30
Author: 6845502+abhabongse@users.noreply.github.com
File Name: pythainlp/util/digitconv.py
Class Name:
Method Name: digit_to_text