ArneBinder commited on
Commit
d0a3f11
1 Parent(s): 1ef2db4

from https://github.com/ArneBinder/pie-datasets/pull/142

Browse files

This integrates https://github.com/bigscience-workshop/biomedical/pull/928

Files changed (2) hide show
  1. drugprot.py +4 -3
  2. 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 pie_modules.annotations import BinaryRelation, LabeledSpan
6
- from pie_modules.documents import (
7
  AnnotationLayer,
8
  TextBasedDocument,
9
  TextDocumentWithLabeledSpansAndBinaryRelations,
@@ -107,7 +107,8 @@ class Drugprot(GeneratorBasedBuilder):
107
  }
108
 
109
  BASE_DATASET_PATH = "bigbio/drugprot"
110
- BASE_DATASET_REVISION = "38ff03d68347aaf694e598c50cb164191f50f61c"
 
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.10.0
 
1
+ pie-datasets>=0.9.0,<0.11.0