You can speed up the map function by setting batched=True to process multiple elements of the dataset at once: | |
tokenized_wnut = wnut.map(tokenize_and_align_labels, batched=True) | |
Now create a batch of examples using [DataCollatorWithPadding]. |
You can speed up the map function by setting batched=True to process multiple elements of the dataset at once: | |
tokenized_wnut = wnut.map(tokenize_and_align_labels, batched=True) | |
Now create a batch of examples using [DataCollatorWithPadding]. |