ArneBinder commited on
Commit
c69ef02
·
verified ·
1 Parent(s): 524ffec

use pie-modules instead of pytorch-ie

Browse files

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

Files changed (3) hide show
  1. README.md +2 -2
  2. requirements.txt +2 -1
  3. tbga.py +3 -3
README.md CHANGED
@@ -20,7 +20,7 @@ and the following annotation layers:
20
  - `name` (str, entity string between span start and end)
21
 
22
  See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
23
- [here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/annotations.py) for the annotation
24
  type definitions.
25
 
26
  ## Document Converters
@@ -30,5 +30,5 @@ The dataset provides predefined document converters for the following target doc
30
  - `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations`
31
 
32
  See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
33
- [here](https://github.com/ChristophAlt/pytorch-ie/blob/main/src/pytorch_ie/documents.py) for the document type
34
  definitions.
 
20
  - `name` (str, entity string between span start and end)
21
 
22
  See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
23
+ [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotation
24
  type definitions.
25
 
26
  ## Document Converters
 
30
  - `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations`
31
 
32
  See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
33
+ [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
34
  definitions.
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
tbga.py CHANGED
@@ -2,9 +2,9 @@ import dataclasses
2
  from typing import Any
3
 
4
  import datasets
5
- from pytorch_ie import AnnotationLayer, annotation_field
6
- from pytorch_ie.annotations import BinaryRelation, LabeledSpan, Span
7
- from pytorch_ie.documents import (
8
  TextBasedDocument,
9
  TextDocumentWithLabeledSpansAndBinaryRelations,
10
  )
 
2
  from typing import Any
3
 
4
  import datasets
5
+ from pie_core import AnnotationLayer, annotation_field
6
+ from pie_modules.annotations import BinaryRelation, LabeledSpan, Span
7
+ from pie_modules.documents import (
8
  TextBasedDocument,
9
  TextDocumentWithLabeledSpansAndBinaryRelations,
10
  )