    def dump_line(self, outputs: JsonDict) -> str:
        """
        If you don't want your outputs in JSON-lines format
        you can override this function to output them differently.
        """
        return json.dumps(outputs) + "\n"
If you don't want your outputs in JSON-lines format
you can override this function to output them differently.
allennlp/predictors/predictor.py