mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Add comma deletion to data noising
This commit is contained in:
parent
21ee1c7a17
commit
9536ee787c
|
@ -265,7 +265,7 @@ def _corrupt(c, noise_level):
|
|||
return '\n'
|
||||
elif c == '\n':
|
||||
return ' '
|
||||
elif c in ['.', "'", "!", "?"]:
|
||||
elif c in ['.', "'", "!", "?", ',']:
|
||||
return ''
|
||||
else:
|
||||
return c.lower()
|
||||
|
|
Loading…
Reference in New Issue
Block a user