File size: 1,365 Bytes
f9c96da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# PIE Dataset Card for "BioRel"
This is a [PyTorch-IE](https://github.com/ChristophAlt/pytorch-ie) wrapper for the
[BioRel Huggingface dataset loading script](https://huggingface.co/datasets/DFKI-SLT/BioRel).
## Data Schema
The document type for this dataset is `BioRelDocument` which defines the following data fields:
- `text` (str)
and the following annotation layers:
- `entities` (annotation type: `SpanWithIdAndName`, target: `text`)
- `relations` (annotation type: `BinaryRelation`, target: `entities`)
`SpanWithIdAndName` is a custom annotation type that extends typical `Span` with the following data fields:
- `id` (str, for entity identification)
- `name` (str, entity string between span start and end)
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
[here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/annotations.py) for the annotation
type definitions.
## Document Converters
The dataset provides predefined document converters for the following target document types:
- `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations`
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
[here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/documents.py) for the document type
definitions.
|