Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -104,7 +104,7 @@ def parse_conll_stream(file_stream):
|
|
104 |
continue
|
105 |
token_data = line.split('\t') + [doc_id]
|
106 |
for name, value in zip(names, token_data):
|
107 |
-
if name=='id' and
|
108 |
mwe_id=value.split('-')
|
109 |
else:
|
110 |
sentence[name].append(value)
|
|
|
104 |
continue
|
105 |
token_data = line.split('\t') + [doc_id]
|
106 |
for name, value in zip(names, token_data):
|
107 |
+
if name=='id' and not value.isnumeric():
|
108 |
mwe_id=value.split('-')
|
109 |
else:
|
110 |
sentence[name].append(value)
|