The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 1531, in _prepare_split_single
for key, record in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, 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 1400, 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 977, 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 786, 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 1369, 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 948, 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 1393, 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 1571, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed 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/fewrel_sent_perm0/0/dev | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/0/test | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/0/train | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/1/dev | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/1/test | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/1/train | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/2/dev | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/2/test | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/2/train | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
"eyJzeXN0ZW1fcHJvbXB0IjogIllvdSBhcmUgYSByZWxhdGlvbiBleHRyYWN0aW9uIHN5c3RlbS4gWW91ciB0YXNrIGlzIHRvIGl(...TRUNCATED) | data/fewrel_sent_perm0/3/dev | "hf://datasets/datht/processed-new-cl-fewrel@67d8fd7f20ca3e144adbbbf8cabcb13279d6d34f/fewrel_all.tar(...TRUNCATED) |
processed-new-cl-fewrel
FewRel 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, fewrel_all.tar.gz; unpack it at the root of the OpenED repo
(scripts/qwen/cre_sent/fetch_data.sh fewrel does both).
This replaces the pair-level splits of datht/processed-cl-fewrel. 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.pyfrom the full WAVE pool (80 relations x 700 instances). Instances that share a sentence are merged and duplicate triples dropped, so the triples of a sentence are its full annotation. - 3 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 55,952 triples in 54,136 sentences, 1,679 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 caps per relation, 420/140/140. Whole sentences are placed, so train holds 393 to 420 triples per relation; dev and test hold exactly 140.
- Each permutation draws its own partition and order of the relations (seed 2021 + 100p), 8 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, 1.7% 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, so the labels alone cannot tell memory rows apart.tools/process_data.pycopies 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 theargumentscore ofed_eval.py. Itstriggerscore only checks (subject, relation).
Layout mirrors the OpenED repo, so each file goes to the same relative path:
data/fewrel_sent_perm{0..4}/streams.json: the relation types of each task, in stream orderdata/fewrel_sent_perm{0..4}/{0..9}/{train,dev,test}.jsonl: the task split ({system_prompt, user_prompt, response}, plusis_memoryon train rows). The pseudo-labelling and self-distillation stages read these, so they are needed even though the tokenised copies exist.processed_data/fewrel_sent_perm{0..4}/{0..9}/qwen/:tools/process_data.pyoutput (train_0.bin/.idx, plusvalidandtest), 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 fewrel_perm*
splits. Train with scripts/qwen/cre_sent/ (run names carry _sent); the old
scripts/qwen/cre/ runners still read the pair-level data.
- Downloads last month
- 9