File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2459,9 +2459,9 @@ def strip_punctuations(w):
24592459 strip_punctuations = strip_space
24602460
24612461 if case_sensitive :
2462- strip = strip_punctuations
2462+ _strip = strip_punctuations
24632463 else :
2464- def strip (w ):
2464+ def _strip (w ):
24652465 return strip_punctuations (w ).lower ()
24662466
24672467 seg_pairs = list (enumerate (zip (self .segments [:- 1 ], self .segments [1 :])))
@@ -2477,10 +2477,10 @@ def strip(w):
24772477 if end - start <= min_gap :
24782478 continue
24792479 gap_words = other_result .get_content_by_time ((start , end ))
2480- if first_word is not None and gap_words and strip (first_word .word ) == strip (gap_words [0 ].word ):
2480+ if first_word is not None and gap_words and _strip (first_word .word ) == _strip (gap_words [0 ].word ):
24812481 first_word .end = gap_words [0 ].end
24822482 gap_words = gap_words [1 :]
2483- if last_word is not None and gap_words and strip (last_word .word ) == strip (gap_words [- 1 ].word ):
2483+ if last_word is not None and gap_words and _strip (last_word .word ) == _strip (gap_words [- 1 ].word ):
24842484 last_word .start = gap_words [- 1 ].start
24852485 gap_words = gap_words [:- 1 ]
24862486 if not gap_words :
You can’t perform that action at this time.
0 commit comments