use pie-modules instead of pytorch-ie
Browse filessee https://github.com/ArneBinder/pie-datasets/pull/204 for further information
- README.md +2 -2
- comagc.py +3 -3
- requirements.txt +2 -1
README.md
CHANGED
|
@@ -32,7 +32,7 @@ and the following annotation layers:
|
|
| 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/
|
| 36 |
type definitions.
|
| 37 |
|
| 38 |
## Document Converters
|
|
@@ -52,5 +52,5 @@ The dataset provides predefined document converters for the following target doc
|
|
| 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/
|
| 56 |
definitions.
|
|
|
|
| 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
|
|
|
|
| 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.
|
comagc.py
CHANGED
|
@@ -3,9 +3,9 @@ from dataclasses import dataclass
|
|
| 3 |
from typing import Any, Dict, Optional
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
-
from
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
|
| 10 |
from pie_datasets import ArrowBasedBuilder
|
| 11 |
|
|
|
|
| 3 |
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 |
|
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
|