prevent 'inaudible' and 'crosstalk' from being included
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -159,7 +159,7 @@ class Transcript:
|
|
| 159 |
for utt in self.utterances:
|
| 160 |
words = (utt.get_clean_text(remove_punct=True)).split(' ')
|
| 161 |
for word in words:
|
| 162 |
-
if word in stop_words: continue
|
| 163 |
# handle uptake case
|
| 164 |
if utt.role == 'teacher':
|
| 165 |
if utt.uptake == 1:
|
|
|
|
| 159 |
for utt in self.utterances:
|
| 160 |
words = (utt.get_clean_text(remove_punct=True)).split(' ')
|
| 161 |
for word in words:
|
| 162 |
+
if word in stop_words or word in ['inaudible', 'crosstalk']: continue
|
| 163 |
# handle uptake case
|
| 164 |
if utt.role == 'teacher':
|
| 165 |
if utt.uptake == 1:
|