henryle97 / Spelling_Correction_Vietnamese

Vietnamese spelling error correction with Seq2Seq model
MIT License
33 stars 11 forks source link

meaning of self.typo elements in add_noise script #1

Open sinhvtr opened 2 years ago

sinhvtr commented 2 years ago

I read your add_noise script but can not understand this:

self.typo = {"ă": ["aw", "a8"], "â": ["aa", "a6"], "á": ["as", "a1"], "à": ["af", "a2"], "ả": ["ar", "a3"], ...

Could you explain the meaning of the 2nd element, e.g. "a8", "ô5", ...

henryle97 commented 1 year ago

Its VNI encoding. Example: a8 ~ ă