Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

utils.string_to_dict does not always return a dict #37

Open
sechkova opened this issue Feb 22, 2022 · 0 comments
Open

utils.string_to_dict does not always return a dict #37

sechkova opened this issue Feb 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@sechkova
Copy link
Contributor

sechkova commented Feb 22, 2022

Describe the bug

The function utils.string_to_dict https://github.com/vmware-labs/ml-conversational-analytic-tool/blob/b134e8c9afe38b08a4867d3f60ee3921ab45127d/mcat/utils.py#L39 does not really leave up to its name. It analyses the input string and returns the relevant data structure.

When used with https://github.com/vmware-labs/ml-conversational-analytic-tool/blob/b134e8c9afe38b08a4867d3f60ee3921ab45127d/mcat/featureVector.py#L37
it returns a list instead of a dict which leads to KeyError exceptions down the code.

@sechkova sechkova added the bug Something isn't working label Feb 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant