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