ONNX 模型库
返回模型

说明文档

Looking at the README content provided - it's already in Chinese (Simplified). The content is already in the target language.

Here's the content preserved with all formatting intact:


AliCTTransformerPunc 模型介绍

使用方法

下载模型

git clone https://github.com/manyeyes/AliCTTransformerPunc.git
cd /AliCTTransformerPunc/AliCTTransformerPunc.Examples
git clone https://huggingface.co/manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx.git

编辑 Program.cs 中的 modelName 值:

string modelName=\"punc_ct-transformer_zh-cn-common-vocab272727-onnx\";
//[fp32模型/int8模型],二选一
//fp32模型
//string modelFilePath = applicationBase + \"./\"+ modelName + \"/model.onnx\";
//int8模型
string modelFilePath = applicationBase + \"./\"+ modelName + \"/model_quant.onnx\";

将文件夹 punc_ct-transformer_zh-cn-common-vocab272727-onnx 中的文件属性-》复制到输出目录-》如果较新则复制。 或者 编辑 AliCTTransformerPunc.Examples.csproj ,添加

  <ItemGroup>
    <None Update=\"punc_ct-transformer_zh-cn-common-vocab272727-onnx\punc.yaml\">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update=\"punc_ct-transformer_zh-cn-common-vocab272727-onnx\tokens.txt\">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>

启动 AliCTTransformerPunc.Examples

通过modelscope了解更多

原模型

  • pytorch https://www.modelscope.cn/models/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/summary
  • 基于FunASR进行模型的微调和推理: FunASR框架支持魔搭社区开源的工业级的语音识别模型的training & finetuning,使得研究人员和开发者可以更加便捷的进行语音识别模型的研究和生产,目前已在Github开源:https://github.com/alibaba-damo-academy/FunASR 。

manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx

作者 manyeyes

↓ 14 ♥ 3

创建时间: 2023-07-31 10:07:38+00:00

更新时间: 2023-08-02 08:18:42+00:00

在 Hugging Face 上查看

文件 (10)

.gitattributes
README.md
config.yaml
configuration.json
example/punc_example.txt
fig/struct.png
model.onnx ONNX
model_quant.onnx ONNX
punc.yaml
tokens.txt