I am trying to modify
fastai to have the ability to run augmentation transforms on text data, like it does for vision. For example, arbitrarily removing a word from an input sentence.
Ideally I would want to call.
data_clas = TextClasDataBunch.from_csv(path, 'texts.csv', vocab=data_lm.train_ds.vocab, tfms=[rand_remove(p=.3, max_n=1)], bs=42)
Where in the code is the right place to do this? adding a preprocessor to
TextDataBunch and pass it to