Datasets:
ParseError: no element found: line 858123040, column 86
While generating the "de-en" config, a ParseError
is raised:
python ds = load_dataset("wmt/wmt19", "de-en", trust_remote_code=True)
```
Generating train split: 76%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | 29268214/38690334 [1:04:50<20:52, 7522.30 examples/s]
ParseError Traceback (most recent call last)
.../huggingface/datasets/src/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)
1725 _time = time.time()
-> 1726 for key, record in generator:
1727 if max_shard_size is not None and writer._num_bytes > max_shard_size:
~/.cache/huggingface/modules/datasets_modules/datasets/wmt--wmt19/cc3e3ecefbb0ebb8ad64785044aca593c0fb4163f6eb0d0fbfa259feb9a4565c/wmt_utils.py in _generate_examples(self, split_subsets, extraction_map, with_translation)
846
--> 847 for sub_key, ex in sub_generator(*sub_generator_args):
848 if not all(ex.values()):
~/.cache/huggingface/modules/datasets_modules/datasets/wmt--wmt19/cc3e3ecefbb0ebb8ad64785044aca593c0fb4163f6eb0d0fbfa259feb9a4565c/wmt_utils.py in parse_tmx(path)
953 utf_f = codecs.getreader("utf-8")(f)
--> 954 for line_id, (, elem) in enumerate(ElementTree.iterparse(utf_f)):
955 if elem.tag == "tu":
.../lib/python3.9/xml/etree/ElementTree.py in iterator()
1259 pullparser.feed(data)
-> 1260 root = pullparser._close_and_return_root()
1261 yield from pullparser.read_events()
.../lib/python3.9/xml/etree/ElementTree.py in _close_and_return_root(self)
1306 # iterparse needs this to set its root attribute properly :(
-> 1307 root = self._parser.close()
1308 self._parser = None
ParseError: no element found: line 858123040, column 86
```