8000 syntax error · killix/stanford-corenlp-python@cc81916 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc81916

Browse files
committed
syntax error
1 parent 1da4e46 commit cc81916

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
@@ -50,7 +50,7 @@ def parse_parser_results(text):
5050
av = re.split("=| ", s)
5151
# make [ignore,ignore,a,b,c,d] into [[a,b],[c,d]]
5252
# and save as attr-value dict, convert numbers into ints
53-
tmp['words'].append((av[1], dict(zip(*[av[2:][x::2] for x in (0, 1)])))
53+
tmp['words'].append((av[1], dict(zip(*[av[2:][x::2] for x in (0, 1)]))))
5454
# tried to convert digits to ints instead of strings, but
5555
# it seems the results of this can't be serialized into JSON?
5656
# av = zip(*[av[2:][x::2] for x in (0, 1)])

0 commit comments

Comments
 (0)
0