Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sooftware committed Oct 30, 2020
1 parent c45e2a6 commit 5ed6ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset/libri/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def generate_transcript_file(dataset_name, transcripts):
for transcript in transcripts:
audio, transcript = transcript.split('|')
text = " ".join(sp.EncodeAsPieces(transcript))
label = " ".join([str(item) for item in text])
label = " ".join([str(item) for item in sp.EncodeAsIds(transcript)])

f.write('%s\t%s\t%s\n' % (audio, text, label))

0 comments on commit 5ed6ee4

Please sign in to comment.