mirror of https://github.com/explosion/spaCy.git
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