From e11b7769f78b07b95a26482645f703400cb5fa46 Mon Sep 17 00:00:00 2001 From: Gaurav Mittal Date: Thu, 14 Jul 2022 19:02:17 -0700 Subject: [PATCH] Rename punctuate to punctuate_and_cut Rename punctuate to punctuate_and_cut to reflect the correct function name from Sentencify class. --- sentencify_text/process_htm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentencify_text/process_htm.py b/sentencify_text/process_htm.py index a6f2d45..1edf597 100644 --- a/sentencify_text/process_htm.py +++ b/sentencify_text/process_htm.py @@ -25,7 +25,7 @@ def master_process(cap_dict): caps, starts, ends = merge_linebreaks(cap_list, start_list, end_list) if len(caps) <= 5: return None - caps, starts, ends = processor.punctuate(caps, starts, ends) + caps, starts, ends = processor.punctuate_and_cut(caps, starts, ends) return {'text': caps, 'start': starts, 'end': ends} @@ -141,7 +141,7 @@ def __len__(self): if item is None: continue caps, starts, ends = item - caps_, starts_, ends_ = processor.punctuate(caps, starts, ends) + caps_, starts_, ends_ = processor.punctuate_and_cut(caps, starts, ends) output.append({'text': caps_, 'start': starts_, 'end': ends_}) valid_vids.append(vid)