Hi,
That’s indeed something that needs to be improved. The example script is showcased to work on this dataset: conll2003 · Datasets at Hugging Face. So one would need to create a dataset in the same format.
Refer to the docs here: Load text data