DrSleep/terr — Issue #2: Error 
Author: thorhayek
Created: 2011-11-08 06:43:30+00:00
State: open

Traceback (most recent call last):
File "infoextract2.py", line 104, in
main()
File "infoextract2.py", line 98, in main
process_file()
File "infoextract2.py", line 83, in process_file
ret = process_input_text(file_text,id_name_old)
File "infoextract2.py", line 46, in process_input_text
dict_out = matching.match(parsed_text)
File "/home/vishayv/nlp_ee_project/terr/matching.py", line 76, in match
result['WEAPON'] = find_weapon(prsed)
File "/home/vishayv/nlp_ee_project/terr/matching.py", line 42, in find_weapon
found = list(find_thing(prsed, PATT_WEAP))
File "/home/vishayv/nlp_ee_project/terr/matching.py", line 38, in find_thing
yield fmt(prsedspl[:i])
File "/home/vishayv/nlp_ee_project/terr/matching.py", line 15, in fmt
grp = list(groups(l, key=lambda x:x.split('/')[1]))
File "/home/vishayv/nlp_ee_project/terr/aslog.py", line 16, in groups
if curr == key(e):
File "/home/vishayv/nlp_ee_project/terr/matching.py", line 15, in
grp = list(groups(l, key=lambda x:x.split('/')[1]))
IndexError: list index out of range