ArneBinder commited on
Commit
cc9f1ec
1 Parent(s): f4ff05c

Upload 3 files

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. sciarg.py +6 -7
requirements.txt CHANGED
@@ -1 +1 @@
1
- pie-datasets>=0.4.0,<0.5.0
 
1
+ pie-datasets>=0.4.0,<0.6.0
sciarg.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  from pytorch_ie.core import Document
2
  from pytorch_ie.documents import (
3
  TextDocumentWithLabeledSpansAndBinaryRelations,
@@ -6,13 +11,7 @@ from pytorch_ie.documents import (
6
 
7
  from pie_datasets.builders import BratBuilder
8
  from pie_datasets.core.dataset import DocumentConvertersType
9
- from pie_datasets.document.processing import (
10
- Caster,
11
- Pipeline,
12
- RegexPartitioner,
13
- RelationArgumentSorter,
14
- TextSpanTrimmer,
15
- )
16
 
17
  URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip"
18
  SPLIT_PATHS = {"train": "compiled_corpus"}
 
1
+ from pie_models.document.processing import (
2
+ RegexPartitioner,
3
+ RelationArgumentSorter,
4
+ TextSpanTrimmer,
5
+ )
6
  from pytorch_ie.core import Document
7
  from pytorch_ie.documents import (
8
  TextDocumentWithLabeledSpansAndBinaryRelations,
 
11
 
12
  from pie_datasets.builders import BratBuilder
13
  from pie_datasets.core.dataset import DocumentConvertersType
14
+ from pie_datasets.document.processing import Caster, Pipeline
 
 
 
 
 
 
15
 
16
  URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip"
17
  SPLIT_PATHS = {"train": "compiled_corpus"}