Skip to content

Commit 38d3f05

Browse files
author
Ben King
committed
One code review change that was left out of the previous commit
1 parent f2f929a commit 38d3f05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

machine/corpora/punctuation_analysis/depth_based_quotation_mark_resolver.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def is_english_quote_continuer(
116116
) -> bool:
117117
if self._quote_continuer_state.continuer_style == QuoteContinuerStyle.SPANISH:
118118
return False
119-
if not self._meets_quote_continuer_prerequisites(quotation_mark_match, previous_match, next_match):
119+
if not self._meets_quote_continuer_prerequisites(quotation_mark_match):
120120
return False
121121

122122
if (
@@ -146,7 +146,7 @@ def is_spanish_quote_continuer(
146146
) -> bool:
147147
if self._quote_continuer_state.continuer_style == QuoteContinuerStyle.ENGLISH:
148148
return False
149-
if not self._meets_quote_continuer_prerequisites(quotation_mark_match, previous_match, next_match):
149+
if not self._meets_quote_continuer_prerequisites(quotation_mark_match):
150150
return False
151151

152152
if not self._settings.are_marks_a_valid_pair(
@@ -175,8 +175,6 @@ def is_spanish_quote_continuer(
175175
def _meets_quote_continuer_prerequisites(
176176
self,
177177
quotation_mark_match: QuotationMarkStringMatch,
178-
previous_match: Union[QuotationMarkStringMatch, None],
179-
next_match: Union[QuotationMarkStringMatch, None],
180178
) -> bool:
181179
if (
182180
self._settings.should_rely_on_paragraph_markers

0 commit comments

Comments
 (0)