ArneBinder commited on
Commit
4bd6fdc
·
verified ·
1 Parent(s): 71defb0

use pie-documents 0.1.0

Browse files

from https://github.com/ArneBinder/pie-datasets/pull/209 (and https://github.com/ArneBinder/pie-datasets/pull/211), also see https://github.com/ArneBinder/pie-documents/releases/tag/v0.1.0

Files changed (3) hide show
  1. README.md +4 -4
  2. drugprot.py +2 -2
  3. requirements.txt +1 -1
README.md CHANGED
@@ -36,15 +36,15 @@ and the following annotation layers:
36
  - `entities` (annotation type: `LabeledSpan`, target: `text`)
37
  - `relations` (annotation type: `BinaryRelation`, target: `entities`)
38
 
39
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotation
40
  type definitions.
41
 
42
  ## Document Converters
43
 
44
  The dataset provides predefined document converters for the following target document types:
45
 
46
- - `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations` for `DrugprotDocument`
47
- - `pie_modules.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions` for `DrugprotBigbioDocument`
48
 
49
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
50
  definitions.
 
36
  - `entities` (annotation type: `LabeledSpan`, target: `text`)
37
  - `relations` (annotation type: `BinaryRelation`, target: `entities`)
38
 
39
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation
40
  type definitions.
41
 
42
  ## Document Converters
43
 
44
  The dataset provides predefined document converters for the following target document types:
45
 
46
+ - `pie_documents.documents.TextDocumentWithLabeledSpansAndBinaryRelations` for `DrugprotDocument`
47
+ - `pie_documents.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions` for `DrugprotBigbioDocument`
48
 
49
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
50
  definitions.
drugprot.py CHANGED
@@ -2,8 +2,8 @@ from dataclasses import dataclass
2
  from typing import Any, Dict, Optional, Union
3
 
4
  import datasets
5
- from pie_modules.annotations import BinaryRelation, LabeledSpan
6
- from pie_modules.documents import (
7
  AnnotationLayer,
8
  TextBasedDocument,
9
  TextDocumentWithLabeledSpansAndBinaryRelations,
 
2
  from typing import Any, Dict, Optional, Union
3
 
4
  import datasets
5
+ from pie_documents.annotations import BinaryRelation, LabeledSpan
6
+ from pie_documents.documents import (
7
  AnnotationLayer,
8
  TextBasedDocument,
9
  TextDocumentWithLabeledSpansAndBinaryRelations,
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
  pie-datasets>=0.10.11,<0.12.0
2
- pie-modules>=0.15.9,<0.16.0
 
1
  pie-datasets>=0.10.11,<0.12.0
2
+ pie-documents>=0.1.0,<0.2.0