a9ebcc488db9c635c5524de2ba56cee569e91552,pythainlp/transliterate/__init__.py,,romanize,#Any#Any#,6

Before Change


    else:  // use default engine "royin"
        from .royin import romanize

        words = word_tokenize(text)
        romanized_words = [romanize(word) for word in words]

        return "".join(romanized_words)

After Change


    if not isinstance(text, str) or not text:
        return ""

    if engine == "thai2rom":
        from .thai2rom import romanize
    else:  // use default engine "royin"
        from .royin import romanize

    return romanize(text)


def transliterate(text: str, engine: str = "ipa") -> str:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PyThaiNLP/pythainlp
Commit Name: a9ebcc488db9c635c5524de2ba56cee569e91552
Time: 2019-04-17
Author: arthit@gmail.com
File Name: pythainlp/transliterate/__init__.py
Class Name:
Method Name: romanize


Project Name: tyarkoni/pliers
Commit Name: 0cdbd836f44e9351e769b2504d82680af838927f
Time: 2020-01-19
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: WordCounterExtractor
Method Name: _extract


Project Name: tyarkoni/pliers
Commit Name: 621fecf03cf409c4b379aa310e0c518bb6f6e9cd
Time: 2020-02-07
Author: rbrrcc@gmail.com
File Name: pliers/filters/text.py
Class Name: WordStemmingFilter
Method Name: _filter