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
- requirements.txt +1 -1
- tacred.py +3 -3
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
|
tacred.py
CHANGED
|
@@ -3,9 +3,9 @@ from typing import Any, Dict, Optional
|
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
from pie_core import Annotation, AnnotationLayer, annotation_field
|
| 6 |
-
from
|
| 7 |
-
from
|
| 8 |
-
from
|
| 9 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 10 |
TokenBasedDocument,
|
| 11 |
)
|
|
|
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
from pie_core import Annotation, AnnotationLayer, annotation_field
|
| 6 |
+
from pie_documents.annotations import BinaryRelation, LabeledSpan
|
| 7 |
+
from pie_documents.document.processing import token_based_document_to_text_based
|
| 8 |
+
from pie_documents.documents import (
|
| 9 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 10 |
TokenBasedDocument,
|
| 11 |
)
|