ArneBinder commited on
Commit
c280cd6
·
verified ·
1 Parent(s): d1f371f

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 +5 -5
  2. comagc.py +2 -2
  3. requirements.txt +1 -1
README.md CHANGED
@@ -31,15 +31,15 @@ and the following annotation layers:
31
  - `name` (str): entity string between span start and end
32
  - `type` (str): entity type classifying the expression
33
 
34
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
35
- [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotation
36
  type definitions.
37
 
38
  ## Document Converters
39
 
40
  The dataset provides predefined document converters for the following target document types:
41
 
42
- - `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations`:
43
 
44
  - **labeled_spans**: There are always two labeled spans in each sentence.
45
  The first one refers to the gene, while the second one refers to the cancer.
@@ -51,6 +51,6 @@ The dataset provides predefined document converters for the following target doc
51
  no binary relation is added to the document. In total to 303 of the 821 examples,
52
  there is no rule is applicable (cf [here](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-14-323/tables/7)).
53
 
54
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
55
- [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
56
  definitions.
 
31
  - `name` (str): entity string between span start and end
32
  - `type` (str): entity type classifying the expression
33
 
34
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) and
35
+ [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation
36
  type definitions.
37
 
38
  ## Document Converters
39
 
40
  The dataset provides predefined document converters for the following target document types:
41
 
42
+ - `pie_documents.documents.TextDocumentWithLabeledSpansAndBinaryRelations`:
43
 
44
  - **labeled_spans**: There are always two labeled spans in each sentence.
45
  The first one refers to the gene, while the second one refers to the cancer.
 
51
  no binary relation is added to the document. In total to 303 of the 821 examples,
52
  there is no rule is applicable (cf [here](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-14-323/tables/7)).
53
 
54
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) and
55
+ [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
56
  definitions.
comagc.py CHANGED
@@ -4,8 +4,8 @@ from typing import Any, Dict, Optional
4
 
5
  import datasets
6
  from pie_core import AnnotationLayer, Document, annotation_field
7
- from pie_modules.annotations import BinaryRelation, LabeledSpan, Span
8
- from pie_modules.documents import TextDocumentWithLabeledSpansAndBinaryRelations
9
 
10
  from pie_datasets import ArrowBasedBuilder
11
 
 
4
 
5
  import datasets
6
  from pie_core import AnnotationLayer, Document, annotation_field
7
+ from pie_documents.annotations import BinaryRelation, LabeledSpan, Span
8
+ from pie_documents.documents import TextDocumentWithLabeledSpansAndBinaryRelations
9
 
10
  from pie_datasets import ArrowBasedBuilder
11
 
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