ONNX Model Zoo

baicai1145/G2PWModel_zh-Hans

By baicai1145 · ↓ 0 · ♥ 1 · Updated 2025-10-08

What's in this repo

This page lists the files in baicai1145/G2PWModel_zh-Hans, including g2pw.onnx.

  • 1 ONNX models (.onnx files)
  • 11 files, including 2 .txt, 2 .json, 1 .md, 1 .pth, 1 .py, 1 .onnx
  • Last updated 2025-10-08

ONNX files

File Size Download
g2pw.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

G2PWModel_zh-Hans

中文 | English


中文

简介

这是 G2PW (Grapheme-to-Phoneme for Word) 模型的重新训练版本,专门针对简体中文进行了优化。

主要优化

  • 纯简体中文数据集:此版本仅使用简体中文数据进行训练,提供更准确的简体中文发音预测
  • 更快的推理速度:推荐使用 @baicai-1145/g2pw-torch 进行推理,速度比原版 ONNX 实现更快

模型信息

  • 模型名称: G2PWModel_zh-Hans
  • 训练数据: 简体中文语料
  • 优化目标: 提高简体中文字音转换准确率

使用方法

推荐使用 g2pw-torch 进行推理:

pip install g2pw-torch
from g2pw import G2PWConverter

converter = G2PWConverter(model_dir='baicai1145/G2PWModel_zh-Hans')
result = converter('我今天很开心')
print(result)

致谢

相关项目

许可证

本项目遵循原项目的许可证协议。


English

Introduction

This is a retrained version of the G2PW (Grapheme-to-Phoneme for Word) model, specifically optimized for Simplified Chinese.

Key Improvements

  • Simplified Chinese Only Dataset: This version is trained exclusively on Simplified Chinese data, providing more accurate pronunciation predictions for Simplified Chinese
  • Faster Inference Speed: We recommend using @baicai-1145/g2pw-torch for inference, which is faster than the original ONNX implementation

Model Information

  • Model Name: G2PWModel_zh-Hans
  • Training Data: Simplified Chinese corpus
  • Optimization Goal: Improve accuracy of Simplified Chinese grapheme-to-phoneme conversion

Usage

We recommend using g2pw-torch for inference:

pip install g2pw-torch
from g2pw import G2PWConverter

converter = G2PWConverter(model_dir='baicai1145/G2PWModel_zh-Hans')
result = converter('我今天很开心')
print(result)

Credits

Related Projects

License

This project follows the same license as the original project.

Model info

onnx base_model:hfl/chinese-bert-wwm base_model:quantized:hfl/chinese-bert-wwm license:mit region:us
↓ 0 ♥ 1

Created: 2025-09-16

Updated: 2025-10-08

View on Hugging Face

Files (11)

.gitattributes
MONOPHONIC_CHARS.txt
POLYPHONIC_CHARS.txt
README.md
best_accuracy.pth
bopomofo_to_pinyin_wo_tune_dict.json
char_bopomofo_dict.json
config.py
g2pw.onnx ONNX
record.log
version

Related models