First of all let me thank you for this amazing library !
I am using nlpaug.augmenter.char to augment my text data in different ways and I noticed that when I call the .augment() method with n=1 it returns a string:
It would be nice to have always the same type of output, i.e. even with only 1 augmentation having a list with one string inside.
I don't know if it's going to produce regressions but as it is right now I have to check first if the output is a string or a list and in the latter case loop over the list to get the strings inside.
First of all let me thank you for this amazing library ! I am using
nlpaug.augmenter.char
to augment my text data in different ways and I noticed that when I call the.augment()
method withn=1
it returns astring
:while for more than 1 augmentations it returns a list of strings:
It would be nice to have always the same type of output, i.e. even with only 1 augmentation having a list with one string inside.
I don't know if it's going to produce regressions but as it is right now I have to check first if the output is a string or a list and in the latter case loop over the list to get the strings inside.
Many thanks in advance and have a nice day ! :)