geek-ai/irgan

list index out of range

kunalchamoli opened this issue · 0 comments


IndexError Traceback (most recent call last)
in
----> 1 vocab = build_vocab()
2 alist = read_alist()
3 raw = read_raw()

in build_vocab()
8 items = line.strip().split(' ')
9 for i in range(2, 3):
---> 10 words = items[i].split('_')
11 for word in words:
12 if not word in vocab:

IndexError: list index out of range