8000 isdigit bug · orazaro/stanford-corenlp-python@e9adaad · GitHub
[go: up one dir, main page]

Skip to content

Commit e9adaad

Browse files
committed
isdigit bug
1 parent 9e2feed commit e9adaad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def parse_parser_results(text):
4949
# make [ignore,ignore,a,b,c,d] into [[a,b],[c,d]]
5050
av = zip(*[av[2:][x::2] for x in (0, 1)])
5151
# save as attr-value dict, convert numbers into ints
52-
tmp['words'][av[1]] = dict(map(lambda x: (x[0], x.isdigit(x[1])
52+
tmp['words'][av[1]] = dict(map(lambda x: (x[0], x[1].isdigit()
5353
and int(x[1]) or x[1]), av))
5454
state = 3
5555
elif state == 3:

0 commit comments

Comments
 (0)
0