Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
5b7d4a9
·
1 Parent(s): 09df852

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +1 -1
disrpt.py CHANGED
@@ -94,7 +94,7 @@ def parse_conll_stream(file_stream):
94
  for line in file_stream:
95
  line = line.strip()
96
  if line.startswith("#"):
97
- continue
98
  if not line:
99
  if sentence['id']:
100
  yield sentence
 
94
  for line in file_stream:
95
  line = line.strip()
96
  if line.startswith("#"):
97
+ sentence['doc_id']=line.split('_')[-1].strip()
98
  if not line:
99
  if sentence['id']:
100
  yield sentence