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

JSON to Instance in Predictor #4

Open
youlandasu opened this issue Nov 10, 2020 · 0 comments
Open

JSON to Instance in Predictor #4

youlandasu opened this issue Nov 10, 2020 · 0 comments

Comments

@youlandasu
Copy link

I got an issue when running evaluation:

instance = self._json_to_instance(inputs)
File "./dstqa/dstqa_predictor.py", line 43, in _json_to_instance
dialog = json_dict['dialogue']
TypeError: list indices must be integers or slices, not str

Seems like it cannot proceed JSON with multiple instances in test set. I wonder how you did deserialization. Thanks for help!

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

1 participant