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 +3 -3
- conll2012_ontonotesv5.py +2 -2
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -35,13 +35,13 @@ and the following annotation layers:
|
|
| 35 |
- `speakers` (annotation type: `Attribute`, target: `sentences`)
|
| 36 |
- `parse_trees` (annotation type: `Attribute`, target: `sentences`)
|
| 37 |
|
| 38 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 39 |
|
| 40 |
## Document Converters
|
| 41 |
|
| 42 |
The dataset provides document converters for the following target document types:
|
| 43 |
|
| 44 |
-
- `
|
| 45 |
|
| 46 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 47 |
definitions.
|
|
|
|
| 35 |
- `speakers` (annotation type: `Attribute`, target: `sentences`)
|
| 36 |
- `parse_trees` (annotation type: `Attribute`, target: `sentences`)
|
| 37 |
|
| 38 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation type definitions.
|
| 39 |
|
| 40 |
## Document Converters
|
| 41 |
|
| 42 |
The dataset provides document converters for the following target document types:
|
| 43 |
|
| 44 |
+
- `pie_documents.documents.TextDocumentWithLabeledSpansAndLabeledPartitions`
|
| 45 |
|
| 46 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
|
| 47 |
definitions.
|
conll2012_ontonotesv5.py
CHANGED
|
@@ -4,8 +4,8 @@ from typing import Any, Dict, List, Optional, Tuple
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
from pie_core import Annotation, AnnotationLayer, annotation_field
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
TextDocumentWithLabeledSpansAndLabeledPartitions,
|
| 10 |
TokenBasedDocument,
|
| 11 |
)
|
|
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
from pie_core import Annotation, AnnotationLayer, annotation_field
|
| 7 |
+
from pie_documents.annotations import LabeledSpan, NaryRelation, Span
|
| 8 |
+
from pie_documents.documents import (
|
| 9 |
TextDocumentWithLabeledSpansAndLabeledPartitions,
|
| 10 |
TokenBasedDocument,
|
| 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
|