ArneBinder commited on
Commit
9d0c6f5
·
verified ·
1 Parent(s): 751e816

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 +3 -3
  2. conll2003.py +3 -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-modules/blob/main/src/pie_modules/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_modules.documents.TextDocumentWithLabeledSpans`
25
 
26
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
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 pie_modules.annotations import LabeledSpan
7
- from pie_modules.documents import TextBasedDocument, TextDocumentWithLabeledSpans
8
- from pie_modules.utils.sequence_tagging import tag_sequence_to_token_spans
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-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