use pie-modules instead of pytorch-ie
Browse filessee https://github.com/ArneBinder/pie-datasets/pull/204 for further information
- README.md +2 -2
- imdb.py +2 -2
- requirements.txt +2 -1
README.md
CHANGED
|
@@ -16,7 +16,7 @@ and the following annotation layers:
|
|
| 16 |
- `label` (annotation type: `Label`, target: `None`)
|
| 17 |
|
| 18 |
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
|
| 19 |
-
[here](https://github.com/
|
| 20 |
type definitions.
|
| 21 |
|
| 22 |
## Document Converters
|
|
@@ -26,5 +26,5 @@ The dataset provides predefined document converters for the following target doc
|
|
| 26 |
- `pie_modules.documents.ExtractiveQADocument` (simple cast without any conversion)
|
| 27 |
|
| 28 |
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
|
| 29 |
-
[here](https://github.com/
|
| 30 |
definitions.
|
|
|
|
| 16 |
- `label` (annotation type: `Label`, target: `None`)
|
| 17 |
|
| 18 |
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
|
| 19 |
+
[here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotation
|
| 20 |
type definitions.
|
| 21 |
|
| 22 |
## Document Converters
|
|
|
|
| 26 |
- `pie_modules.documents.ExtractiveQADocument` (simple cast without any conversion)
|
| 27 |
|
| 28 |
See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
|
| 29 |
+
[here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
|
| 30 |
definitions.
|
imdb.py
CHANGED
|
@@ -2,8 +2,8 @@ from dataclasses import dataclass
|
|
| 2 |
from typing import Any, Dict
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
-
from
|
| 6 |
-
from
|
| 7 |
|
| 8 |
from pie_datasets import GeneratorBasedBuilder
|
| 9 |
|
|
|
|
| 2 |
from typing import Any, Dict
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
+
from pie_modules.annotations import Label
|
| 6 |
+
from pie_modules.documents import TextDocumentWithLabel
|
| 7 |
|
| 8 |
from pie_datasets import GeneratorBasedBuilder
|
| 9 |
|
requirements.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
-
pie-datasets>=0.
|
|
|
|
|
|
| 1 |
+
pie-datasets>=0.10.11,<0.11.0
|
| 2 |
+
pie-modules>=0.15.9,<0.16.0
|