Last active
August 2, 2022 06:21
-
-
Save Mynuddin-dev/f74f4525332e89b6a49b706382f665f9 to your computer and use it in GitHub Desktop.
lexicon text to vocab text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("librispeech-lexicon.txt") as f: | |
liness = f.readlines() | |
vocabulary = open("vocab.txt" , 'w') | |
for line in liness: | |
vocabulary.write(line.split()[0] +"\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment