use pie-modules instead of pytorch-ie
Browse filessee https://github.com/ArneBinder/pie-datasets/pull/204 for further information
- chemprot.py +3 -3
- requirements.txt +2 -1
chemprot.py
CHANGED
|
@@ -2,9 +2,9 @@ from dataclasses import dataclass
|
|
| 2 |
from typing import Any, Dict
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
-
from
|
| 6 |
-
from
|
| 7 |
-
from
|
| 8 |
AnnotationLayer,
|
| 9 |
TextBasedDocument,
|
| 10 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
|
|
|
| 2 |
from typing import Any, Dict
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
+
from pie_core import Document
|
| 6 |
+
from pie_modules.annotations import BinaryRelation, LabeledSpan
|
| 7 |
+
from pie_modules.documents import (
|
| 8 |
AnnotationLayer,
|
| 9 |
TextBasedDocument,
|
| 10 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
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
|