Commit ·
9941324
1
Parent(s): f5ac83e
Upload 3 files
Browse files- requirements.txt +1 -1
- scidtb_argmin.py +3 -3
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
pie-datasets>=0.
|
|
|
|
| 1 |
+
pie-datasets>=0.5.0,<0.6.0
|
scidtb_argmin.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
import dataclasses
|
| 2 |
import logging
|
| 3 |
-
from typing import Any,
|
| 4 |
|
| 5 |
import datasets
|
|
|
|
| 6 |
from pytorch_ie.annotations import BinaryRelation, LabeledSpan
|
| 7 |
-
from pytorch_ie.core import AnnotationList,
|
| 8 |
from pytorch_ie.documents import (
|
| 9 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 10 |
TokenBasedDocument,
|
|
@@ -12,7 +13,6 @@ from pytorch_ie.documents import (
|
|
| 12 |
from pytorch_ie.utils.span import bio_tags_to_spans
|
| 13 |
|
| 14 |
from pie_datasets import GeneratorBasedBuilder
|
| 15 |
-
from pie_datasets.document.processing import token_based_document_to_text_based
|
| 16 |
|
| 17 |
log = logging.getLogger(__name__)
|
| 18 |
|
|
|
|
| 1 |
import dataclasses
|
| 2 |
import logging
|
| 3 |
+
from typing import Any, Dict, List, Tuple
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
+
from pie_models.document.processing import token_based_document_to_text_based
|
| 7 |
from pytorch_ie.annotations import BinaryRelation, LabeledSpan
|
| 8 |
+
from pytorch_ie.core import AnnotationList, annotation_field
|
| 9 |
from pytorch_ie.documents import (
|
| 10 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
| 11 |
TokenBasedDocument,
|
|
|
|
| 13 |
from pytorch_ie.utils.span import bio_tags_to_spans
|
| 14 |
|
| 15 |
from pie_datasets import GeneratorBasedBuilder
|
|
|
|
| 16 |
|
| 17 |
log = logging.getLogger(__name__)
|
| 18 |
|