Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mady143 opened this issue Dec 23, 2019 · 1 comment

Comments

@mady143
Copy link

mady143 commented Dec 23, 2019

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
Copy link

g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants