Skip to content

Conversation

@Spr-Aachen
Copy link
Contributor

@Spr-Aachen Spr-Aachen commented Nov 10, 2025

改进G2PWPinyin模型的加载机制

  • 添加 bert_pretrained_dir 环境变量作为 model_source 参数的最高优先级
  • chinese2.py 中 g2pw 的初始化改为从 download.py 中直接导入
  • 移除 g2pw 初始化之前无意义的 parent_directory 变量

- Add 'bert_pretrained_dir' environment variable as the highest priority for model_source
- Replace redundant g2pw initialization in chinese2.py with import from download.py
- Remove unused 'parent_directory' variable
@Spr-Aachen Spr-Aachen changed the title Improve G2PWPinyin model handling 改进 G2PWPinyin 模型的加载机制 Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant