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