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
- conll2003.py +3 -3
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -15,13 +15,13 @@ and the following annotation layers:
|
|
| 15 |
|
| 16 |
- `entities` (annotation type: `LabeledSpan`, target: `text`)
|
| 17 |
|
| 18 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 19 |
|
| 20 |
## Document Converters
|
| 21 |
|
| 22 |
The dataset provides document converters for the following target document types:
|
| 23 |
|
| 24 |
-
- `
|
| 25 |
|
| 26 |
-
See [here](https://github.com/ArneBinder/pie-
|
| 27 |
definitions.
|
|
|
|
| 15 |
|
| 16 |
- `entities` (annotation type: `LabeledSpan`, target: `text`)
|
| 17 |
|
| 18 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation type definitions.
|
| 19 |
|
| 20 |
## Document Converters
|
| 21 |
|
| 22 |
The dataset provides document converters for the following target document types:
|
| 23 |
|
| 24 |
+
- `pie_documents.documents.TextDocumentWithLabeledSpans`
|
| 25 |
|
| 26 |
+
See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
|
| 27 |
definitions.
|
conll2003.py
CHANGED
|
@@ -3,9 +3,9 @@ from typing import List, Sequence, Tuple
|
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
from pie_core import AnnotationLayer, annotation_field
|
| 6 |
-
from
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
|
| 10 |
from pie_datasets import GeneratorBasedBuilder
|
| 11 |
|
|
|
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
from pie_core import AnnotationLayer, annotation_field
|
| 6 |
+
from pie_documents.annotations import LabeledSpan
|
| 7 |
+
from pie_documents.documents import TextBasedDocument, TextDocumentWithLabeledSpans
|
| 8 |
+
from pie_documents.utils.sequence_tagging import tag_sequence_to_token_spans
|
| 9 |
|
| 10 |
from pie_datasets import GeneratorBasedBuilder
|
| 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
|