Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -114,10 +114,10 @@ _URLs = {f'{task}-{split}.{type}':f"https://raw.githubusercontent.com/disrpt/sha
|
|
114 |
for task in files for split in 'train dev test'.split() for type in ['rels','conllu']}
|
115 |
#_URLs = {k:v for k,v in _URLs.items() if requests.get(v).status_code!=404}
|
116 |
|
117 |
-
conllu_features = ['
|
118 |
feature_type = {"seg":datasets.features.Sequence(
|
119 |
datasets.features.ClassLabel(names=["O","B-Segment"])),
|
120 |
-
'id':datasets.Value("string")}
|
121 |
|
122 |
conllu_features = datasets.Features({x:feature_type.get(x,datasets.Sequence(datasets.Value("string")))
|
123 |
for x in conllu_features})
|
|
|
114 |
for task in files for split in 'train dev test'.split() for type in ['rels','conllu']}
|
115 |
#_URLs = {k:v for k,v in _URLs.items() if requests.get(v).status_code!=404}
|
116 |
|
117 |
+
conllu_features = ['id', 'form', 'lemma', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'seg','doc_id']
|
118 |
feature_type = {"seg":datasets.features.Sequence(
|
119 |
datasets.features.ClassLabel(names=["O","B-Segment"])),
|
120 |
+
'id':datasets.Value("string"),'doc_id':datasets.Value("string")}
|
121 |
|
122 |
conllu_features = datasets.Features({x:feature_type.get(x,datasets.Sequence(datasets.Value("string")))
|
123 |
for x in conllu_features})
|