ArneBinder
commited on
Commit
•
d0a3f11
1
Parent(s):
1ef2db4
from https://github.com/ArneBinder/pie-datasets/pull/142
Browse filesThis integrates https://github.com/bigscience-workshop/biomedical/pull/928
- drugprot.py +4 -3
- requirements.txt +1 -1
drugprot.py
CHANGED
@@ -2,8 +2,8 @@ from dataclasses import dataclass
|
|
2 |
from typing import Any, Dict, Optional, Union
|
3 |
|
4 |
import datasets
|
5 |
-
from
|
6 |
-
from
|
7 |
AnnotationLayer,
|
8 |
TextBasedDocument,
|
9 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
@@ -107,7 +107,8 @@ class Drugprot(GeneratorBasedBuilder):
|
|
107 |
}
|
108 |
|
109 |
BASE_DATASET_PATH = "bigbio/drugprot"
|
110 |
-
|
|
|
111 |
|
112 |
BUILDER_CONFIGS = [
|
113 |
datasets.BuilderConfig(
|
|
|
2 |
from typing import Any, Dict, Optional, Union
|
3 |
|
4 |
import datasets
|
5 |
+
from pytorch_ie.annotations import BinaryRelation, LabeledSpan
|
6 |
+
from pytorch_ie.documents import (
|
7 |
AnnotationLayer,
|
8 |
TextBasedDocument,
|
9 |
TextDocumentWithLabeledSpansAndBinaryRelations,
|
|
|
107 |
}
|
108 |
|
109 |
BASE_DATASET_PATH = "bigbio/drugprot"
|
110 |
+
# This revision includes the "test_background" split (see https://github.com/bigscience-workshop/biomedical/pull/928)
|
111 |
+
BASE_DATASET_REVISION = "0cc98b3d292242e69adcfd2c3e5eea94baaca8ea"
|
112 |
|
113 |
BUILDER_CONFIGS = [
|
114 |
datasets.BuilderConfig(
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
pie-datasets>=0.9.0,<0.
|
|
|
1 |
+
pie-datasets>=0.9.0,<0.11.0
|