白菜工厂1145号员工 ba8de9b760
优化 G2PW 的推理输入构造与多音字处理流程,减少重复计算,降低长句场景下的推理开销 (#2763)
* Enhance G2P processing by implementing batch input handling in _g2p function, improving efficiency. Update prepare_onnx_input to utilize caching for tokenization and add optional parameters for character ID mapping and phoneme masks. Refactor G2PWOnnxConverter to streamline model loading and configuration management.

* Enhance G2PW model input handling by introducing polyphonic context character support and updating the data preparation method to return additional query IDs. This improves the processing of polyphonic characters in sentences.
2026-04-18 16:52:32 +08:00
..
2025-11-28 21:22:43 +08:00
2024-08-06 12:00:51 +08:00
2024-02-05 03:47:38 +08:00
2024-03-18 19:11:53 +08:00
2024-03-18 19:11:53 +08:00
2024-01-16 17:38:48 +08:00