Skip to content

Commit

Permalink
Merge pull request #55 from mideind/tokendeletion
Browse files Browse the repository at this point in the history
Missing yield added
  • Loading branch information
sveinbjornt authored Sep 25, 2023
2 parents 208dae8 + aa9cd9c commit 502e405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reynir_correct/errtokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,8 @@ def is_valid_suggestion(token: CorrectToken, m: Sequence[BIN_Tuple], corrected_t
yield rtok
context = (prev_context + tuple(rtok.txt.split()))[-3:]
prev_context = context
else:
yield token
continue

# And Icelandic Search Query Errors
Expand Down

0 comments on commit 502e405

Please sign in to comment.