mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-06 15:44:17 +00:00
Merge branch 'dev/bilingual' of https://github.com/JinZr/icefall into dev/bilingual
This commit is contained in:
commit
7e798c21c7
@ -56,7 +56,7 @@ def main():
|
|||||||
transcript_path = lang_dir / "transcript_chars.txt"
|
transcript_path = lang_dir / "transcript_chars.txt"
|
||||||
|
|
||||||
with open(text, "r", encoding="utf-8") as fin:
|
with open(text, "r", encoding="utf-8") as fin:
|
||||||
with open(transcript_path, "w+", encoding="utf-8") as fout:
|
with open(transcript_path, "w", encoding="utf-8") as fout:
|
||||||
for line in tqdm(fin):
|
for line in tqdm(fin):
|
||||||
fout.write(tokenize_by_CJK_char(line) + "\n")
|
fout.write(tokenize_by_CJK_char(line) + "\n")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user