ArneBinder commited on
Commit
86aeffd
·
verified ·
1 Parent(s): 0e691c3

use pie-modules instead of pytorch-ie

Browse files

see https://github.com/ArneBinder/pie-datasets/pull/204 for further information

Files changed (2) hide show
  1. chemprot.py +3 -3
  2. 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 pytorch_ie import Document
6
- from pytorch_ie.annotations import BinaryRelation, LabeledSpan
7
- from pytorch_ie.documents import (
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.6.0,<0.11.0
 
 
1
+ pie-datasets>=0.10.11,<0.11.0
2
+ pie-modules>=0.15.9,<0.16.0