@classmethod
    def normalize_vi(cls, text):
        def repl(m):
            alphabet = cls.TO_NORMALIZE_VI_CHARS.find(m.group(1))
            dmark = cls.DMARK_CLASS.find(m.group(2))  # Diacritical Mark
            return cls.NORMALIZED_VI_CHARS[dmark][alphabet]
        return cls.ALPHABET_WITH_DMARK.sub(repl, text)
Normalizer for Vietnamese.
dataset/ETHPy150Open Mimino666/langdetect/langdetect/utils/ngram.py/NGram.normalize_vi