ArneBinder commited on
Commit
be85b0b
·
verified ·
1 Parent(s): 882d2c7

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. conll2012_ontonotesv5.py +2 -2
  3. 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-modules/blob/main/src/pie_modules/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_modules.documents.TextDocumentWithLabeledSpansAndLabeledPartitions`
45
 
46
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
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 pie_modules.annotations import LabeledSpan, NaryRelation, Span
8
- from pie_modules.documents import (
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-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