Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many Chinese words are not transcribed by cmn-Hans/cmn-Hant #132

Open
stefantaubert opened this issue Sep 7, 2022 · 0 comments
Open

Many Chinese words are not transcribed by cmn-Hans/cmn-Hant #132

stefantaubert opened this issue Sep 7, 2022 · 0 comments

Comments

@stefantaubert
Copy link

stefantaubert commented Sep 7, 2022

Epitran didn't transcribe the vocabulary in failed.txt (4274 entries).

Is there a possibility to support a transcription of these entries?

Commands I've run:

import epitran
from pathlib import Path

epitran.download.cedict()
epi = epitran.Epitran('cmn-Hans', tones=False, ligatures=True, cedict_file="/home/mi/epitran_data/cedict.txt")
epi2 = epitran.Epitran('cmn-Hant', tones=False, ligatures=True, cedict_file="/home/mi/epitran_data/cedict.txt")
voc = Path("/home/mi/playground/chn/vocabulary.txt").read_text("UTF-8").splitlines()
failed = []

for v in voc:
  result = epi.transliterate(v)
  if result == v:
    result = epi2.transliterate(v)
    if result == v:
      failed.append(result)
Path("/tmp/failed.txt").write_text("\n".join(failed), "UTF-8")

Epitran version: 1.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant