File "execute.py", line 338, in main
gen_disc()
File "execute.py", line 53, in gen_disc
gens.decoder(gen_config)
File "/home/bigdata/Leo/seqGanChatbot/gen/generator.py", line 266, in decoder
answer_str = " ".join([str(rev_vocab[an]) for an in answer[:-1]])
File "/home/bigdata/Leo/seqGanChatbot/gen/generator.py", line 266, in
answer_str = " ".join([str(rev_vocab[an]) for an in answer[:-1]])
IndexError: list index out of range
any clue to fix it? thx
File "execute.py", line 338, in main gen_disc() File "execute.py", line 53, in gen_disc gens.decoder(gen_config) File "/home/bigdata/Leo/seqGanChatbot/gen/generator.py", line 266, in decoder answer_str = " ".join([str(rev_vocab[an]) for an in answer[:-1]]) File "/home/bigdata/Leo/seqGanChatbot/gen/generator.py", line 266, in
answer_str = " ".join([str(rev_vocab[an]) for an in answer[:-1]])
IndexError: list index out of range
any clue to fix it? thx