tokenized_wnut = wnut.map(tokenize_and_align_labels, batched=True)

Now create a batch of examples using [DataCollatorWithPadding]. It's more efficient to dynamically pad the sentences to the longest length in a batch during collation, instead of padding the whole dataset to the maximum length.