def METHOD_NAME(self, translations, delays, scores):
    if self.output_files["text"] is not None:
        with open(self.output_files["text"], "w") as f:
            for line in translations:
                f.write(line + "\n")
    if self.output_files["delay"] is not None:
        with open(self.output_files["delay"], "w") as f:
            for i, delay in enumerate(delays):
                f.write(
                    json.dumps({"src_len": self.src_lengths()[i], "delays": delay})
                    + "\n"
                )
    with open(self.output_files["scores"], "w") as f:
        for key, value in scores.items():
            f.write(f"{key}, {value}\n")