Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
415a155
1 Parent(s): 27bda37

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +1 -0
disrpt.py CHANGED
@@ -191,6 +191,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
191
  stream=parse_conll_stream(f)
192
  for i, row in enumerate(stream):
193
  row['seg']=map_seg(row['misc'])
 
194
  yield i,row
195
  reader = csv.DictReader(f,delimiter='\t',quoting=csv.QUOTE_NONE)
196
  for id_, row in enumerate(reader):
 
191
  stream=parse_conll_stream(f)
192
  for i, row in enumerate(stream):
193
  row['seg']=map_seg(row['misc'])
194
+ row['doc_id']=row['doc_id'][0]
195
  yield i,row
196
  reader = csv.DictReader(f,delimiter='\t',quoting=csv.QUOTE_NONE)
197
  for id_, row in enumerate(reader):