The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: RuntimeError
Message: Dataset scripts are no longer supported, but found brat.py
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
config_names = get_dataset_config_names(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1031, in dataset_module_factory
raise e1 from None
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 989, in dataset_module_factory
raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
RuntimeError: Dataset scripts are no longer supported, but found brat.pyNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
PIE Dataset Card for "brat"
This is a PyTorch-IE wrapper for the BRAT Huggingface dataset loading script.
Dataset Variants
The dataset provides the following variants:
default: The original dataset. Documents are of typeBratDocument(withLabeledMultiSpanannotations, see below).merge_fragmented_spans: Documents are of typeBratDocumentWithMergedSpans(this variant merges spans that are fragmented into simpleLabeledSpans, see below).
Data Schema
The document type for this dataset is BratDocument or BratDocumentWithMergedSpans, depending on if the
data was loaded with merge_fragmented_spans=True (default: False). They define the following data fields:
text(str)id(str, optional)metadata(dictionary, optional)
and the following annotation layers:
spans(annotation type:LabeledMultiSpanin the case ofBratDocumentandLabeledSpanand in the case ofBratDocumentWithMergedSpans, target:text)relations(annotation type:BinaryRelation, target:spans)span_attributes(annotation type:Attribute, target:spans)relation_attributes(annotation type:Attribute, target:relations)
The LabeledMultiSpan annotation type is defined as follows:
slices(type:Tuple[Tuple[int, int], ...]): the slices consisting if start (including) and end (excluding) indices of the spanslabel(type:str)score(type:float, optional, not included in comparison)
The Attribute annotation type is defined as follows:
annotation(type:Annotation): the annotation to which the attribute is attachedlabel(type:str)value(type:str, optional)score(type:float, optional, not included in comparison)
See here for the remaining annotation type definitions.
Document Converters
The dataset provides no predefined document converters because the BRAT format is very flexible and can be used for many different tasks.
- Downloads last month
- 43