Update disrpt.py
Browse files
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):
|