From 0f14789f1c33d55dc270bcd154201cce2c4d516e Mon Sep 17 00:00:00 2001 From: JoJoBarthold2 Date: Mon, 18 Sep 2023 12:19:31 +0200 Subject: reset commit history --- swr2_asr/utils/data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'swr2_asr/utils/data.py') diff --git a/swr2_asr/utils/data.py b/swr2_asr/utils/data.py index f484bdd..19605f6 100644 --- a/swr2_asr/utils/data.py +++ b/swr2_asr/utils/data.py @@ -344,7 +344,7 @@ class MLSDataset(Dataset): idx, ) # type: ignore - def create_lexicon(vocab_counts_path, lexicon_path): +def create_lexicon(vocab_counts_path, lexicon_path): words_list = [] with open(vocab_counts_path, 'r') as file: @@ -361,6 +361,8 @@ class MLSDataset(Dataset): file.write(f"{word} ") for char in word: file.write(char + ' ') - file.write("|") + file.write("") + + \ No newline at end of file -- cgit v1.2.3