@@ -2157,15 +2157,15 @@ def filter_matches_missing_required_phrases(
21572157
21582158 for match in matches :
21592159 if trace :
2160- logger_debug (' CHECKING KEY PHRASES for:' , match )
2160+ logger_debug (' CHECKING REQUIRED PHRASES for:' , match )
21612161
21622162 is_continuous = match .rule .is_continuous or match .rule .is_required_phrase
21632163 ikey_spans = match .rule .required_phrase_spans
21642164
21652165 if not (ikey_spans or is_continuous ):
21662166 kept_append (match )
21672167 if trace :
2168- logger_debug (' ==> KEEPING, NO KEY PHRASES OR IS_CONTINUOUS DEFINED' )
2168+ logger_debug (' ==> KEEPING, NO REQUIRED PHRASES OR IS_CONTINUOUS DEFINED' )
21692169 continue
21702170
21712171 if is_continuous and not match .is_continuous ():
@@ -2179,7 +2179,7 @@ def filter_matches_missing_required_phrases(
21792179 if any (ikey_span not in ispan for ikey_span in ikey_spans ):
21802180 if trace :
21812181 logger_debug (
2182- ' ==> DISCARDING, KEY PHRASES MISSING' ,
2182+ ' ==> DISCARDING, REQUIRED PHRASES MISSING' ,
21832183 'ikey_spans:' , ikey_spans ,
21842184 'ispan:' , ispan ,
21852185 )
@@ -2228,7 +2228,7 @@ def filter_matches_missing_required_phrases(
22282228 if len (qkey_span ) != qkey_span .magnitude ():
22292229
22302230 logger_debug (
2231- ' ==> DISCARDING, KEY PHRASES PRESENT, BUT NOT CONTINUOUS:' ,
2231+ ' ==> DISCARDING, REQUIRED PHRASES PRESENT, BUT NOT CONTINUOUS:' ,
22322232 'qkey_span:' , qkey_span , 'qpan:' , qspan
22332233 )
22342234
@@ -2251,7 +2251,7 @@ def filter_matches_missing_required_phrases(
22512251
22522252 if contains_unknown :
22532253 logger_debug (
2254- ' ==> DISCARDING, KEY PHRASES PRESENT, BUT UNKNOWNS:' ,
2254+ ' ==> DISCARDING, REQUIRED PHRASES PRESENT, BUT UNKNOWNS:' ,
22552255 'qkey_span:' , qkey_span , 'qpan:' , qspan ,
22562256 'unknown_by_pos:' , unknown_by_pos
22572257 )
@@ -2270,7 +2270,7 @@ def filter_matches_missing_required_phrases(
22702270
22712271 if not has_same_stopwords_pos :
22722272 logger_debug (
2273- ' ==> DISCARDING, KEY PHRASES PRESENT, BUT STOPWORDS NOT SAME:' ,
2273+ ' ==> DISCARDING, REQUIRED PHRASES PRESENT, BUT STOPWORDS NOT SAME:' ,
22742274 'qkey_span:' , qkey_span , 'qpan:' , qspan ,
22752275 'istopwords_by_pos:' , istopwords_by_pos ,
22762276 'qstopwords_by_pos:' , qstopwords_by_pos
@@ -2280,7 +2280,7 @@ def filter_matches_missing_required_phrases(
22802280 break
22812281
22822282 if is_valid :
2283- logger_debug (' ==> KEEPING, KEY PHRASES PRESENT, CONTINUOUS AND NO UNKNOWNS' )
2283+ logger_debug (' ==> KEEPING, REQUIRED PHRASES PRESENT, CONTINUOUS AND NO UNKNOWNS' )
22842284 kept_append (match )
22852285 else :
22862286 match .discard_reason = reason
@@ -2713,7 +2713,7 @@ def _log(_matches, _discarded, msg):
27132713
27142714 matches , discarded = filter_matches_missing_required_phrases (matches )
27152715 all_discarded_extend (discarded )
2716- _log (matches , discarded , 'HAS KEY PHRASES' )
2716+ _log (matches , discarded , 'HAS REQUIRED PHRASES' )
27172717
27182718 matches , discarded = filter_spurious_matches (matches )
27192719 all_discarded_extend (discarded )
0 commit comments