TestTranslator / temp.py
yujuanqin's picture
add recordings and tests
8a3bc32
raw
history blame
407 Bytes
TEXT_FILE = '/Users/jeqin/work/code/TestTranslator/tests/test_data/text/test_asr_zh.txt'
index = 1
with open(TEXT_FILE, encoding='utf-8') as f:
for line in f:
line = line.strip()
# print(line)
if not line:
continue
if line.startswith('#'):
# print(line)
continue
line = f"{index}. {line}"
print(line)
index += 1