mateuszmalinowski / visual_turing_test-tutorial

Tutorial for Visual Turing Test (visual question answering, image question answering).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in the code!

opened this issue · comments

the word2index of the answers in the notebook is wrong because wordcount is not right.
Look at the 2 keys "alarm" and "alarm,"
screenshot from 2017-01-23 17-27-08

i think the solution is to fix this function
frequencies(' '.join(train_raw_y).split(' '))

we must split the answers by the ' ' and ',' NOT just ' ' alone
Am i right?

Thanks a lot! I will check this issue in the weekend. It definitely should not be the case.

Thanks for letting me know about the issue. Now I keep whole answers.