Skip to content

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

@mady143

Description

@mady143

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions