def METHOD_NAME(data_path):
    with open(data_path, "r", encoding="utf-8") as fp:
        if "infer" in data_path:
            next(fp)
        for line in fp:
            line = line.strip()
            if "infer" in data_path:
                words = list(line)
                yield [words]
            else:
                words, labels = line.split("\t")
                words = words.split(CHAR_DELIMITER)
                labels = labels.split(CHAR_DELIMITER)
                assert len(words) == len(labels), "The word %s is not match with the label %s" % (words, labels)
                yield [words, labels]