Skip to content

Commit 05348b4

Browse files
committed
fix file
1 parent c5e4f94 commit 05348b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

paddlex/inference/models/text_to_pinyin/processors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,7 @@ def __call__(self, sentences: List[str]) -> List[List[str]]:
723723
)
724724
if len(texts) == 0:
725725
# sentences no polyphonic words
726-
phones = self._pinyin2p(partial_results[0], sentences)
727-
phone_ids = self._p2id(phones[0])
728-
return {"phones": phones[0], "phone_ids": phone_ids, "pinyins": partial_results[0]}
726+
return partial_results
729727

730728
onnx_input = prepare_onnx_input(
731729
tokenizer=self.tokenizer,

0 commit comments

Comments
 (0)