We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
直接使用AutoModel 加载ct-punc 模型可以正确地为英文句子生成英文标点,但是按照教程使用funasr_onnx中的CT_Transformer无法生成英文标点。
AutoModel 正常生成英文标点
from funasr import AutoModel model = AutoModel(model="ct-punc") model.generate(input='Hello world') # [{'key': 'rand_key_2yW4Acq9GFz6Y', # 'text': ' Hello world.', # 'punc_array': tensor([1, 2])}]
导出onnx模型
funasr-export ++model=ct-punc ++quantize=true ++device=cpu
运行onnx模型,此时只能生成中文标点
from funasr_onnx import Paraformer, CT_Transformer model = CT_Transformer("exported_model_dir") model("Hello world") # ('Hello world。', [1, 3])
期望onnx版本也能生成英文标点
pip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug
直接使用AutoModel 加载ct-punc 模型可以正确地为英文句子生成英文标点,但是按照教程使用funasr_onnx中的CT_Transformer无法生成英文标点。
To Reproduce
AutoModel 正常生成英文标点
导出onnx模型
运行onnx模型,此时只能生成中文标点
Expected behavior
期望onnx版本也能生成英文标点
Environment
pip
):The text was updated successfully, but these errors were encountered: