Skip to content

Commit 4e88ba1

Browse files
committed
comment explaining what was done added
1 parent d4827d0 commit 4e88ba1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/criteria/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def get_fillers(fillers: list, audio: Audio) -> list:
6565
found_fillers = []
6666
for audio_slide in audio.audio_slides:
6767
found_slide_fillers = []
68+
# добавлена предобработка слов - перевод в нижний регистр, очистка от пунктуации
6869
audio_slide_words = [
6970
recognized_word.word.value.strip().lower().translate(str.maketrans('', '', string.punctuation))
7071
for recognized_word in audio_slide.recognized_words

0 commit comments

Comments
 (0)