def preprocess_prediction_data(data, tokenizer):
    """
    It process the prediction data as the format used as training.

    Args:
        data (obj:`List[str]`): The prediction data whose each element is  a tokenized text.
        tokenizer(obj: paddlenlp.data.JiebaTokenizer): It use jieba to cut the chinese string.

    Returns:
        examples (obj:`List(Example)`): The processed data whose each element is a Example (numedtuple) object.
            A Example object contains `text`(word_ids) and `seq_len`(sequence length).

    """
    examples = []
    for text in data:
        # ids = tokenizer.encode(text)                        # JiebaTokenizer
        ids = tokenizer.encode(text)[0].tolist()[
            1:-1]  # ErnieTokenizer        list[ids]
        examples.append([ids, len(ids)])

    return examples