Hi ! Maybe you can include the original text along with the tokenized data in prepare_train_features ?
This way when you’re shuffling/selecting examples then each sample will still have both the text and the tokenized text.