When building your vocabulary, is it OK to use the tokens from the entire dataset to shrink your out-of-vocabulary list?
False. Build the vocabulary from the training split only (or from an external corpus, such as a pretrained model's vocabulary); tokens seen only in validation or test data map to UNK, or are split into known subword pieces by a subword tokenizer.
Proposed by @GokuMohandas