ranjaykrishna / iq

Information Maximizing Visual Question Generation
https://cs.stanford.edu/people/ranjaykrishna/iq/index.html
Other
66 stars 14 forks source link

Getting an Error "AttributeError: 'dict' object has no attribute 'encode'" #6

Open mady143 opened 4 years ago

mady143 commented 4 years ago

Hi @ranjaykrishna ,

i am trying to execute python utils/vocab.py getting an error "Traceback (most recent call last): File "utils/vocab.py", line 144, in vocab = build_vocab(args.questions, args.cat2ans, args.threshold) File "utils/vocab.py", line 93, in build_vocab answer = tokenize(answer.encode('utf8')) AttributeError: 'dict' object has no attribute 'encode'"

can you help me to resolve this issue...

Thanks & Regards, Manikantha Sekhar...

13vida37 commented 2 years ago

g