use pie-documents 0.1.0
Browse filesfrom 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
- README.md +5 -5
- biorel.py +2 -2
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -19,16 +19,16 @@ and the following annotation layers:
|
|
| 19 |
- `id` (str, for entity identification)
|
| 20 |
- `name` (str, entity string between span start and end)
|
| 21 |
|
| 22 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 23 |
-
[here](https://github.com/ArneBinder/pie-
|
| 24 |
type definitions.
|
| 25 |
|
| 26 |
## Document Converters
|
| 27 |
|
| 28 |
The dataset provides predefined document converters for the following target document types:
|
| 29 |
|
| 30 |
-
- `
|
| 31 |
|
| 32 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 33 |
-
[here](https://github.com/ArneBinder/pie-
|
| 34 |
definitions.
|
|
|
|
| 19 |
- `id` (str, for entity identification)
|
| 20 |
- `name` (str, entity string between span start and end)
|
| 21 |
|
| 22 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) and
|
| 23 |
+
[here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation
|
| 24 |
type definitions.
|
| 25 |
|
| 26 |
## Document Converters
|
| 27 |
|
| 28 |
The dataset provides predefined document converters for the following target document types:
|
| 29 |
|
| 30 |
+
- `pie_documents.documents.TextDocumentWithLabeledSpansAndBinaryRelations`
|
| 31 |
|
| 32 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) and
|
| 33 |
+
[here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
|
| 34 |
definitions.
|
biorel.py
CHANGED
|
@@ -4,8 +4,8 @@ from typing import Any
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
from pie_core import AnnotationLayer, annotation_field
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
TextBasedDocument,
|
| 10 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 11 |
)
|
|
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
from pie_core import AnnotationLayer, annotation_field
|
| 7 |
+
from pie_documents.annotations import BinaryRelation, LabeledSpan, Span
|
| 8 |
+
from pie_documents.documents import (
|
| 9 |
TextBasedDocument,
|
| 10 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 11 |
)
|
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
pie-datasets>=0.10.11,<0.12.0
|
| 2 |
-
pie-
|
|
|
|
| 1 |
pie-datasets>=0.10.11,<0.12.0
|
| 2 |
+
pie-documents>=0.1.0,<0.2.0
|