8000 dict => list error · afcarl/stanford-corenlp-python@1845ca4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1845ca4

Browse files
committed
dict => list error
1 parent 6e36e9a commit 1845ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corenlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def parse_parser_results(text):
4242
if not line.startswith("[Text="):
4343
print line
4444
raise Exception("Parse error. Could not find [Text=")
45-
tmp['words'] = {}
45+
tmp['words'] = []
4646
exp = re.compile('\[([a-zA-Z0-9=. ]+)\]')
4747
matches = exp.findall(line)
4848
for s in matches:

0 commit comments

Comments
 (0)
0