add print
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -393,7 +393,6 @@ def run_math_density(transcript):
|
|
393 |
# Filter out matches that share positions with longer terms
|
394 |
matches = [match for match in matches if not any(match.start() in range(existing[0], existing[1]) for existing in matched_positions)]
|
395 |
matched_text = [match.group(0) for match in matches]
|
396 |
-
print("matches: ", matched_text)
|
397 |
if len(matches) > 0:
|
398 |
if utt.role == "teacher":
|
399 |
if math_terms_dict[term] not in teacher_math_word_cloud:
|
@@ -407,6 +406,7 @@ def run_math_density(transcript):
|
|
407 |
# Update matched positions
|
408 |
matched_positions.update((match.start(), match.end()) for match in matches)
|
409 |
num_matches += len(matches)
|
|
|
410 |
utt.num_math_terms = num_matches
|
411 |
utt.math_terms = match_list
|
412 |
teacher_dict_list = []
|
|
|
393 |
# Filter out matches that share positions with longer terms
|
394 |
matches = [match for match in matches if not any(match.start() in range(existing[0], existing[1]) for existing in matched_positions)]
|
395 |
matched_text = [match.group(0) for match in matches]
|
|
|
396 |
if len(matches) > 0:
|
397 |
if utt.role == "teacher":
|
398 |
if math_terms_dict[term] not in teacher_math_word_cloud:
|
|
|
406 |
# Update matched positions
|
407 |
matched_positions.update((match.start(), match.end()) for match in matches)
|
408 |
num_matches += len(matches)
|
409 |
+
print("matched positions: ", matched_positions)
|
410 |
utt.num_math_terms = num_matches
|
411 |
utt.math_terms = match_list
|
412 |
teacher_dict_list = []
|