def METHOD_NAME(data_path, is_infer=False):
    with open(data_path, "r", encoding="utf-8") as f:
        for line in f:
            data = line.rstrip().split("\t")
            if is_infer:
                if len(data[0]) == 0 or len(data[1]) == 0:
                    continue
                yield {"text_a": data[0], "text_b": data[1]}
            else:
                if len(data[0]) == 0 or len(data[1]) == 0 or len(data[2]) == 0:
                    continue
                yield {"text_a": data[0], "text_b": data[1], "label": data[2]}