    def human_readable_dict(self) -> JsonDict:
        """
        This function help to output instances to json files or print for human readability.
        Use case includes example-based explanation, where it's better to have a output file or
        rather than printing or logging.
        """
        return {key: field.human_readable_repr() for key, field in self.fields.items()}
This function help to output instances to json files or print for human readability.
Use case includes example-based explanation, where it's better to have a output file or
rather than printing or logging.
allennlp/data/instance.py