Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -95,6 +95,7 @@ def parse_conll_stream(file_stream):
|
|
95 |
line = line.strip()
|
96 |
if line.startswith("#"):
|
97 |
doc_id=line.split('=')[-1].strip()
|
|
|
98 |
if not line:
|
99 |
if sentence['id']:
|
100 |
yield sentence
|
|
|
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']:
|
101 |
yield sentence
|