How to deal with of new vocabulary?

I’d also be very interested to see if/how this could be done for BART’s encoder since this might be a solution to this problem