859a6ddb6abf4e9e7848be9160195a0ba080f13e,pythainlp/util/keyboard.py,,thai_to_eng,#Any#,129

Before Change


        >>> thai_to_eng("ฺฟืา นด ธ้ฟรสฟืก")
        "Bank of Thailand"
    
    return "".join(
        [TH_EN_KEYB_PAIRS[ch] if (ch in TH_EN_KEYB_PAIRS) else ch for ch in text]
    )

After Change


        >>> thai_to_eng("ฺฟืา นด ธ้ฟรสฟืก")
        "Bank of Thailand"
    
    return text.translate(TH_EN_TRANSLATE_TABLE)
Italian Trulli
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: thai_to_eng


Project Name: NTMC-Community/MatchZoo
Commit Name: 8d4dffd879eec26ad8098039b1aa84d149cd3799
Time: 2019-07-23
Author: kingbolanda@live.com
File Name: matchzoo/preprocessors/units/punc_removal.py
Class Name: PuncRemoval
Method Name: transform


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