Datasets:

ArXiv:
License:

_generate_examples incorrectly splits documents

#9
by PaulLerner - opened

The code to generate examples is incorrect https://huggingface.co/datasets/statmt/cc100/blob/main/cc100.py#L255-L265
It yields one example per line while https://data.statmt.org/cc-100/ states "Each file comprises of documents separated by double-newlines and paragraphs within the same document separated by a newline."
So the current implementation yields a lot of empty examples and splits documents into multiple examples

Sign up or log in to comment