Skip to content

Commit

Permalink
fix conversion of ## type bpe format to _ type (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashikg authored Aug 24, 2021
1 parent 50fd623 commit a624a46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyctcdecode/alphabet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def _convert_bpe_format(token: str) -> str:
return token
elif token == "": # nosec
return token
elif token in ("<unk>", UNK_BPE_CHAR):
return token
else:
return BPE_CHAR + token

Expand Down

0 comments on commit a624a46

Please sign in to comment.