Skip to content

Commit

Permalink
prevent from removing hyphen from input
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeronymous committed May 17, 2023
1 parent 0270e25 commit 4cea20a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions punctuation/recasepunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ def generate_predictions(config, line):
'“': 'O',
'”': 'O',
'"': 'O',
'-': 'O',
'-': 'O',
#'-': 'O', # hyphen is a word piece
'〉': 'COMMA',
'〈': 'COMMA',
'↑': 'O',
Expand Down

0 comments on commit 4cea20a

Please sign in to comment.