From 59a390d86867e090546234a57c9c73739e64943a Mon Sep 17 00:00:00 2001 From: m-bain <36994049+m-bain@users.noreply.github.com> Date: Sat, 17 Dec 2022 23:47:32 +0000 Subject: [PATCH] remove merge str --- whisperx/transcribe.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/whisperx/transcribe.py b/whisperx/transcribe.py index 6058067..cb3f0ff 100644 --- a/whisperx/transcribe.py +++ b/whisperx/transcribe.py @@ -284,11 +284,8 @@ def align( transcription = segment['text'].strip() t_words = transcription.split(' ') -<<<<<<< HEAD t_words_clean = [''.join([w for w in word if w.upper() in model_dictionary.keys()]) for word in t_words] -======= t_words_clean = [''.join([w for w in word if w in model_dictionary.keys()]) for word in t_words] ->>>>>>> b47bb769a071de8344f46e47c80f1ad11fa1ed4c t_words_nonempty = [x for x in t_words_clean if x != ""] t_words_nonempty_idx = [x for x in range(len(t_words_clean)) if t_words_clean[x] != ""] segment['word-level'] = []