ArneBinder commited on
Commit
c0f2602
·
verified ·
1 Parent(s): 850835e

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 +5 -5
  2. imdb.py +2 -2
  3. requirements.txt +1 -1
README.md CHANGED
@@ -15,16 +15,16 @@ and the following annotation layers:
15
 
16
  - `label` (annotation type: `Label`, target: `None`)
17
 
18
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) and
19
- [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotation
20
  type definitions.
21
 
22
  ## Document Converters
23
 
24
  The dataset provides predefined document converters for the following target document types:
25
 
26
- - `pie_modules.documents.ExtractiveQADocument` (simple cast without any conversion)
27
 
28
- See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) and
29
- [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document type
30
  definitions.
 
15
 
16
  - `label` (annotation type: `Label`, target: `None`)
17
 
18
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) and
19
+ [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotation
20
  type definitions.
21
 
22
  ## Document Converters
23
 
24
  The dataset provides predefined document converters for the following target document types:
25
 
26
+ - `pie_documents.documents.ExtractiveQADocument` (simple cast without any conversion)
27
 
28
+ See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) and
29
+ [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document type
30
  definitions.
imdb.py CHANGED
@@ -2,8 +2,8 @@ from dataclasses import dataclass
2
  from typing import Any, Dict
3
 
4
  import datasets
5
- from pie_modules.annotations import Label
6
- from pie_modules.documents import TextDocumentWithLabel
7
 
8
  from pie_datasets import GeneratorBasedBuilder
9
 
 
2
  from typing import Any, Dict
3
 
4
  import datasets
5
+ from pie_documents.annotations import Label
6
+ from pie_documents.documents import TextDocumentWithLabel
7
 
8
  from pie_datasets import GeneratorBasedBuilder
9
 
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