

@classmethod
def normalize_vi(cls, text):
    'Normalizer for Vietnamese.\n        Normalize Alphabet + Diacritical Mark(U+03xx) into U+1Exx.\n        '

    def repl(m):
        alphabet = cls.TO_NORMALIZE_VI_CHARS.find(m.group(1))
        dmark = cls.DMARK_CLASS.find(m.group(2))
        return cls.NORMALIZED_VI_CHARS[dmark][alphabet]
    return cls.ALPHABET_WITH_DMARK.sub(repl, cls)

dataset/ETHPy150Open Mimino666/langdetect/langdetect/utils/ngram.py NGram.normalize_vi/VarMisuse@79/147 `text`->`cls`