ArneBinder commited on
Commit
33126ae
1 Parent(s): afb09ae

Upload 3 files

Browse files
Files changed (2) hide show
  1. cdcp.py +2 -2
  2. requirements.txt +1 -1
cdcp.py CHANGED
@@ -1,8 +1,9 @@
1
  import dataclasses
2
  import logging
3
- from typing import Any, Callable, Dict, List, Optional
4
 
5
  import datasets
 
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,7 +12,6 @@ from pytorch_ie.documents import (
11
  )
12
 
13
  from pie_datasets import GeneratorBasedBuilder
14
- from pie_datasets.document.processing.text_span_trimmer import trim_text_spans
15
 
16
  log = logging.getLogger(__name__)
17
 
 
1
  import dataclasses
2
  import logging
3
+ from typing import Any, Dict, List, Optional
4
 
5
  import datasets
6
+ from pie_models.document.processing.text_span_trimmer import trim_text_spans
7
  from pytorch_ie.annotations import BinaryRelation, LabeledSpan
8
  from pytorch_ie.core import Annotation, AnnotationList, annotation_field
9
  from pytorch_ie.documents import (
 
12
  )
13
 
14
  from pie_datasets import GeneratorBasedBuilder
 
15
 
16
  log = logging.getLogger(__name__)
17
 
requirements.txt CHANGED
@@ -1 +1 @@
1
- pie-datasets>=0.3.3,<0.5.0
 
1
+ pie-datasets>=0.5.0,<0.6.0