makcedward / nlpaug

Data augmentation for NLP
https://makcedward.github.io/
MIT License
4.46k stars 463 forks source link

ContextualWordEmbsAug: extra whitespace before and after punctuaion #325

Open MT010104 opened 1 year ago

MT010104 commented 1 year ago
aug.augment("Your goal is to separate those (group) into Separate strings.")[0]
'Our goal is to separate those ( group ) into Separate strings.' 

Is there any way to get rid of these extra whitespaces?