def METHOD_NAME(self,
                  sentence: str,
                  merge_sentences: bool=True,
                  print_info: bool=False,
                  to_tensor: bool=True) -> Dict[str, List[paddle.Tensor]]:
    phonemes = self.get_phonemes(
        sentence, merge_sentences=merge_sentences, print_info=print_info)
    result = {}
    temp_phone_ids = []
    for phones in phonemes:
        if phones:
            phone_ids = self._p2id(phones)
            # if use paddle.to_tensor() in onnxruntime, the first time will be too low
            if to_tensor:
                phone_ids = paddle.to_tensor(phone_ids)
            temp_phone_ids.append(phone_ids)
    if temp_phone_ids:
        result["phone_ids"] = temp_phone_ids
    return result