Skip to content

Instantly share code, notes, and snippets.

@Mynuddin-dev
Last active August 2, 2022 06:21
Show Gist options
  • Save Mynuddin-dev/f74f4525332e89b6a49b706382f665f9 to your computer and use it in GitHub Desktop.
Save Mynuddin-dev/f74f4525332e89b6a49b706382f665f9 to your computer and use it in GitHub Desktop.
lexicon text to vocab text
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