Downloads · 30 days
58
9% of all-time downloads
manyeyes/punc_ct-transformer_zh-cn-common-vocab272727-onnx
punc_ct-transformer_zh-cn-common-vocab272727-onnx is a machine learning model from manyeyes. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
58
9% of all-time downloads
All-time downloads
650
Public
Repo size
575 MB
Likes
4
Public
Click a slice to open those files.
.onnx575 MB · 99%
From the Hugging Face model README
下载模型
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