Skip to content

Commit

Permalink
fuzzy matching: [FIX] last test on intermediate match
Browse files Browse the repository at this point in the history
  • Loading branch information
remiadon committed Jun 6, 2019
1 parent e8372c8 commit c3c2ee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flashtext/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ def extract_keywords(self, sentence, span_info=False, max_cost=0):
) # current_dict_continued to empty dict by default, so next iteration goes to a `break`
curr_cost -= cost
idy += len(next_word) - 1
if not current_dict_continued:
break
else:
break
idy += 1
Expand Down

0 comments on commit c3c2ee6

Please sign in to comment.