File size: 263 Bytes
affcd23 |
1 2 3 4 5 6 7 8 9 10 |
fin = open("hw_asr/text_encoder/librispeech-vocab.txt", "r")
fout = open("hw_asr/text_encoder/librispeech-fixed-vocab.txt", "w+")
while line := fin.readline():
line = line.lower().replace("'", "")
print(line, end="", file=fout)
fin.close()
fout.close()
|