Datasets:

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

Update disrpt.py

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