makcedward / nlpaug

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

Change WordAugmenter clean type-checking to catch all list-comprehens… #303

Closed sami-bg closed 2 years ago

sami-bg commented 2 years ago

…ible types

I had an identical change to SentenceAugmenter a while back, but it seems that I missed this class. Here is the change:

https://github.com/makcedward/nlpaug/commit/048cfa184b330fb470c87af372b4ef706f25e1f2