This is just a repo of a few preprocessing templates. The preprocessing contains word2int encoding, padding truncation and word embeddings.
Bart, a training example: https://discuss.huggingface.co/t/train-bart-for-conditional-generation-e-g-summarization/1904