Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
33f446e
1 Parent(s): e17625f

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +2 -2
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 = ['doc_id', 'id', 'form', 'lemma', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc', 'seg']
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})