imdb / README.md
idalr's picture
Update dataset files
9ae4182
|
raw
history blame
1.13 kB
# PIE Dataset Card for "imdb"
This is a [PyTorch-IE](https://github.com/ChristophAlt/pytorch-ie) wrapper for the
[imdb Huggingface dataset loading script](https://huggingface.co/datasets/imdb).
## Data Schema
The document type for this dataset is `ImdbDocument` which defines the following data fields:
- `text` (str)
- `id` (str, optional)
- `metadata` (dictionary, optional)
and the following annotation layers:
- `label` (annotation type: `Label`, target: `None`)
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.ExtractiveQADocument` (simple cast without any conversion)
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.