8000 Fix the error in batch processing example, refs #3 · potatochip/corenlp-python@0dc66bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 0dc66bf

Browse files
committed
Fix the error in batch processing example, refs dasmith#3
1 parent 8970b38 commit 0dc66bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corenlp/corenlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def extract_words_from_xml(sent_node):
236236
sentences = [{'dependencies': [[dep['dep'][i]['@type'],
237237
dep['dep'][i]['governor']['#text'],
238238
dep['dep'][i]['dependent']['#text']]
239-
for dep in raw_sent_list.values()[j][u'dependencies']
239+
for dep in raw_sent_list[j][u'dependencies']
240240
for i in xrange(len(dep['dep']))
241241
if dep['@type']=='basic-dependencies'],
242242
'text': extract_words_from_xml(raw_sent_list[j]),

0 commit comments

Comments
 (0)
0