Commits

Hiroyoshi Komatsu committed 0dc66bf

Fix the error in batch processing example, refs #3

Comments (0)

Files changed (1)

     sentences = [{'dependencies': [[dep['dep'][i]['@type'],
                                     dep['dep'][i]['governor']['#text'],
                                     dep['dep'][i]['dependent']['#text']]
-                                   for dep in raw_sent_list.values()[j][u'dependencies']
+                                   for dep in raw_sent_list[j][u'dependencies']
                                    for i in xrange(len(dep['dep']))
                                    if dep['@type']=='basic-dependencies'],
                   'text': extract_words_from_xml(raw_sent_list[j]),