AlbertoFH98 commited on
Commit
bdb36cd
1 Parent(s): 29bdd4d

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -0
utils.py CHANGED
@@ -87,10 +87,13 @@ class TogetherLLM(LLM):
87
  # -- Setup new transcription format, without duplicates and with its correspondent speaker
88
  new_transcription = []
89
  for transcription in self.original_transcription.split('\n\n'):
 
 
90
  transcription_cleaned = re.sub(regex_init_transcription, "", transcription.strip()).replace('\"', '')
91
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
92
  for resultado_aux in resultado_alpha_num:
93
  if resultado_aux in transcription_cleaned:
 
94
  init_transcription = re.search(regex_init_transcription, transcription).group(0)
95
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
96
  # -- Merge with original transcription
 
87
  # -- Setup new transcription format, without duplicates and with its correspondent speaker
88
  new_transcription = []
89
  for transcription in self.original_transcription.split('\n\n'):
90
+ print(transcription)
91
+ print("--------------")
92
  transcription_cleaned = re.sub(regex_init_transcription, "", transcription.strip()).replace('\"', '')
93
  transcription_cleaned = re.sub(r'\W+', ' ', transcription_cleaned).strip().lower()
94
  for resultado_aux in resultado_alpha_num:
95
  if resultado_aux in transcription_cleaned:
96
+ print(regex_init_transcription, " VS ", transcription)
97
  init_transcription = re.search(regex_init_transcription, transcription).group(0)
98
  new_transcription.append(init_transcription + '\"' + resultado_aux + '\"')
99
  # -- Merge with original transcription