makcedward / nlpaug

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

What is the correct way to specify include_detail=True? #333

Open chanind opened 1 year ago

chanind commented 1 year ago

In the docs notebook change_log.ipynb, it shows that it's possible to pass include_detail=True when creating augmentations. However, none of the augmentations I've tried this with support directly passing include_detail=True in the constructor. The API docs, e.g. for KeyboardAug here also show include_detail=True is not allowed in the constructor, even though the change_log.ipynb docs show this. I find that I can manually set aug.include_detail = True after creating the augmenter, but is this correct? It feels like I'm doing something wrong or overlooking something.