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
Files changed (3)
- README.md+4-4
- chemprot.py+2-2
- requirements.txt+1-1
33 unmodified lines34353637383940414243444546474833 unmodified lines- `entities` (annotation type: `LabeledSpan`, target: `text`)- `relations` (annotation type: `BinaryRelation`, target: `entities`)See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/annotations.py) for the annotationtype definitions.## Document ConvertersThe dataset provides predefined document converters for the following target document types:- `pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations` for `ChemprotDocument`- `pie_modules.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions` for `ChemprotBigbioDocument`See [here](https://github.com/ArneBinder/pie-modules/blob/main/src/pie_modules/documents.py) for the document typedefinitions.33 unmodified lines34353637383940414243444546474833 unmodified lines- `entities` (annotation type: `LabeledSpan`, target: `text`)- `relations` (annotation type: `BinaryRelation`, target: `entities`)See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/annotations.py) for the annotationtype definitions.## Document ConvertersThe dataset provides predefined document converters for the following target document types:- `pie_documents.documents.TextDocumentWithLabeledSpansAndBinaryRelations` for `ChemprotDocument`- `pie_documents.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions` for `ChemprotBigbioDocument`See [here](https://github.com/ArneBinder/pie-documents/blob/main/src/pie_documents/documents.py) for the document typedefinitions.
2 unmodified lines3456789102 unmodified linesimport datasetsfrom pie_core import Documentfrom pie_modules.annotations import BinaryRelation, LabeledSpanfrom pie_modules.documents import (AnnotationLayer,TextBasedDocument,TextDocumentWithLabeledSpansAndBinaryRelations,2 unmodified lines3456789102 unmodified linesimport datasetsfrom pie_core import Documentfrom pie_documents.annotations import BinaryRelation, LabeledSpanfrom pie_documents.documents import (AnnotationLayer,TextBasedDocument,TextDocumentWithLabeledSpansAndBinaryRelations,
12pie-datasets>=0.10.11,<0.12.0pie-modules>=0.15.9,<0.16.012pie-datasets>=0.10.11,<0.12.0pie-documents>=0.1.0,<0.2.0
README.md+4-4
chemprot.py+2-2
requirements.txt+1-1