Commit 7f3877b2 by Peter Ljunglöf

Fix for issue #685

parent c79bc6d7
......@@ -103,7 +103,7 @@ class StanfordParser(ParserI):
cur_lines = []
for line in output_.splitlines(False):
if line == '':
res.append(Tree('\n'.join(cur_lines)))
res.append(Tree.fromstring('\n'.join(cur_lines)))
cur_lines = []
else:
cur_lines.append(line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment