-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# PIE Dataset Card for "CDCP" | ||
|
||
This is a [PyTorch-IE](https://github.com/ChristophAlt/pytorch-ie) wrapper for the | ||
[CDCP Huggingface dataset loading script](https://huggingface.co/datasets/DFKI-SLT/cdcp). | ||
|
||
## Data Schema | ||
|
||
The document type for this dataset is `CDCPDocument` which defines the following data fields: | ||
|
||
- `text` (str) | ||
- `id` (str, optional) | ||
- `metadata` (dictionary, dataclasses) | ||
|
||
and the following annotation layers: | ||
|
||
- `propositions` (annotation type: `LabeledSpan`, target: `text`) | ||
- `relations` (annotation type: `BinaryRelation`, target: `propositions`) | ||
- `urls` (annotation type: `Attribute`, target: `propositions`) | ||
|
||
See [here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/annotations.py) for the annotation type definitions. | ||
|
||
## Document Converters | ||
|
||
The dataset provides document converters for the following target document types: | ||
|
||
- `pytorch_ie.documents.TextDocumentWithLabeledSpansAndBinaryRelations` | ||
|
||
See [here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/documents.py) for the document type | ||
definitions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters