def METHOD_NAME(self, texts):
    is_split_into_words = False
    if isinstance(texts[0], list):
        is_split_into_words = True
    data = self.tokenizer(
        texts, max_length=self.max_length, padding=True, truncation=True, is_split_into_words=is_split_into_words
    )
    input_ids_name = self.runtime.get_input_info(0).name
    token_type_ids_name = self.runtime.get_input_info(1).name
    input_map = {
        input_ids_name: np.array(data["input_ids"], dtype="int64"),
        token_type_ids_name: np.array(data["token_type_ids"], dtype="int64"),
    }
    return input_map