Skip to content

JSON to Instance in Predictor #4

@youlandasu

Description

@youlandasu

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions