def METHOD_NAME(self, filename, *args):
    src_filename, tgt_filename = filename
    with open(src_filename, "r", encoding="utf-8") as src_f:
        with open(tgt_filename, "r", encoding="utf-8") as tgt_f:
            for src_line, tgt_line in zip(src_f, tgt_f):
                src_line = src_line.strip()
                tgt_line = tgt_line.strip()
                if not src_line and not tgt_line:
                    continue
                yield {"source": src_line, "target": tgt_line}