Commit
·
08d2807
1
Parent(s):
6fbc12f
Upload 2 files
Browse files- requirements.txt +1 -1
- tacred.py +1 -1
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
pie-datasets>=0.
|
|
|
|
| 1 |
+
pie-datasets>=0.5.0,<0.6.0
|
tacred.py
CHANGED
|
@@ -2,6 +2,7 @@ from dataclasses import dataclass, field
|
|
| 2 |
from typing import Any, Dict, Optional
|
| 3 |
|
| 4 |
import datasets
|
|
|
|
| 5 |
from pytorch_ie.annotations import BinaryRelation, LabeledSpan
|
| 6 |
from pytorch_ie.core import Annotation, AnnotationList, annotation_field
|
| 7 |
from pytorch_ie.documents import (
|
|
@@ -10,7 +11,6 @@ from pytorch_ie.documents import (
|
|
| 10 |
)
|
| 11 |
|
| 12 |
from pie_datasets import GeneratorBasedBuilder
|
| 13 |
-
from pie_datasets.document.processing import token_based_document_to_text_based
|
| 14 |
|
| 15 |
|
| 16 |
@dataclass(eq=True, frozen=True)
|
|
|
|
| 2 |
from typing import Any, Dict, Optional
|
| 3 |
|
| 4 |
import datasets
|
| 5 |
+
from pie_models.document.processing import token_based_document_to_text_based
|
| 6 |
from pytorch_ie.annotations import BinaryRelation, LabeledSpan
|
| 7 |
from pytorch_ie.core import Annotation, AnnotationList, annotation_field
|
| 8 |
from pytorch_ie.documents import (
|
|
|
|
| 11 |
)
|
| 12 |
|
| 13 |
from pie_datasets import GeneratorBasedBuilder
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
@dataclass(eq=True, frozen=True)
|