Update disrpt.py
Browse files
disrpt.py
CHANGED
|
@@ -96,7 +96,7 @@ def parse_conll_stream(file_stream):
|
|
| 96 |
continue
|
| 97 |
if not line:
|
| 98 |
if sentence['id']:
|
| 99 |
-
yield
|
| 100 |
sentence = {name: [] for name in names}
|
| 101 |
continue
|
| 102 |
token_data = line.split('\t')
|
|
|
|
| 96 |
continue
|
| 97 |
if not line:
|
| 98 |
if sentence['id']:
|
| 99 |
+
yield sentence
|
| 100 |
sentence = {name: [] for name in names}
|
| 101 |
continue
|
| 102 |
token_data = line.split('\t')
|