Update disrpt.py
Browse files
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 |
-
sentence['doc_id']=line.split('
|
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
|