hylee719 commited on
Commit
7124664
·
verified ·
1 Parent(s): 2fefb7e

add test print matches

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -392,6 +392,7 @@ def run_math_density(transcript):
392
  matches = list(re.finditer(term, text, re.IGNORECASE))
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
  if len(matches) > 0:
396
  if utt.role == "teacher":
397
  if math_terms_dict[term] not in teacher_math_word_cloud:
 
392
  matches = list(re.finditer(term, text, re.IGNORECASE))
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
+ print("matches: ", matches)
396
  if len(matches) > 0:
397
  if utt.role == "teacher":
398
  if math_terms_dict[term] not in teacher_math_word_cloud: