Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1539, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 131, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1419, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 976, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 794, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1401, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1579, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

jsonl
unknown
__key__
string
__url__
string
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/0/dev
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/0/test
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/0/train
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/1/dev
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/1/test
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/1/train
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/2/dev
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/2/test
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/2/train
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED)
data/tacred_sent_perm0/3/dev
"hf://datasets/datht/processed-new-cl-tacred@40931a6be438dd23fb9251c07bc5a2b1c4bbac79/tacred_all_new(...TRUNCATED)
End of preview.

processed-new-cl-tacred

TACRED continual relation extraction at the sentence level, 5 permutations x 10 tasks, already tokenised for Qwen3-0.6B, so nothing has to be built or processed after downloading. One archive, tacred_all_new.tar.gz; unpack it at the root of the OpenED repo (HF_TOKEN=... scripts/qwen/cre_sent/fetch_data.sh tacred does both).

This replaces the pair-level splits of datht/processed-cl-tacred. There, a row was one entity pair and the prompt named the pair. Here an input is a sentence, the prompt names no entities, and the model writes every triple it finds.

  • Built by tools/build_cre_sent.py from the full WAVE pool (40 relations without no_relation, 16,322 instances). Instances that share a sentence are merged and duplicate triples dropped, so the triples of a sentence are its full annotation. The old splits used only part of this pool, so their sentences were missing triples that sat in the unused part.
  • 9 sentences are dropped because their full row does not fit the length limits of the pipeline: 460 prompt tokens, 768 in total, and 308 generated tokens (generation left-pads the prompt to 460, and a cut-off JSON scores the whole row as empty). That leaves 16,058 triples in 12,308 sentences, 2,444 of them with more than one triple.
  • Train/dev/test are split by sentence, so no sentence sits in two splits. The RP-CRE sizes are kept as hard caps per relation: train at most 320 triples, dev and test min(n/5, 40). Sentences holding rare relations are placed first; 5,996 sentences are left out by the caps. Train holds 6,479 triples in 4,599 sentences (15 to 320 per relation), dev and test 1,235 triples each (5 to 40 per relation) in 855 and 858 sentences.
  • Each permutation draws its own partition and order of the relations (seed 2021 + 100p), 4 relations per task, as in RP-CRE.
  • Task t, train.jsonl: the training sentences with a triple of the current task. Their target keeps only those triples, so triples of earlier tasks are stripped (task-wise annotation). It also holds the memory: 10 sentences per earlier relation, whose target has every triple with a label seen so far. Over tasks 1-9, 21.8% of the new training sentences hold a stripped triple.
  • Train rows carry "is_memory": true|false. A memory target can also hold a triple of the current task (604 of the 9,000 memory rows over all perms and tasks do), so the labels alone cannot tell memory rows apart. tools/process_data.py copies the field into the processed jsonl, and the trainer, replay oversampling and pseudo-labelling read it.
  • Task t, dev.jsonl / test.jsonl: cumulative. Every sentence with a triple of a label seen so far, with all of those triples.
  • One record per triple, ordered by subject and then object position, in the CED schema so the same evaluator runs unchanged: [<subject span>, <relation type>, [[<object span>, "object"]], <description>]. Full triple F1 is the argument score of ed_eval.py. Its trigger score only checks (subject, relation).
  • TACRED annotates some entities twice with nested spans (e.g. american and african american for the same per:origin); 88 such triples are kept as annotated.

Layout mirrors the OpenED repo, so each file goes to the same relative path:

  • data/tacred_sent_perm{0..4}/streams.json: the relation types of each task, in stream order
  • data/tacred_sent_perm{0..4}/{0..9}/{train,dev,test}.jsonl: the task split ({system_prompt, user_prompt, response}, plus is_memory on train rows). The pseudo-labelling and self-distillation stages read these, so they are needed even though the tokenised copies exist.
  • processed_data/tacred_sent_perm{0..4}/{0..9}/qwen/: tools/process_data.py output (train_0.bin / .idx, plus valid and test), built with --max-prompt-length 460 --t-max-prompt-length 640 --dev-num 1000.

The directories end in _sent_perm, so unpacking does not overwrite the old tacred_perm* splits. Train with scripts/qwen/cre_sent/ (run names carry _sent); the old scripts/qwen/cre/ runners still read the pair-level data.

TACRED is LDC2018T24, and its licence does not allow redistribution, so this repo is private.

Downloads last month
16