ctcdecode安装
1.下载 https://pan.baidu.com/s/1sZMbzzYtBoT35zHtDifVqQ ,提取码:a05y。然后解压到ctcdecode文件夹中。
感谢
ctcdecode安装_huangneng0219的博客-CSDN博客
提供。
然后build.py文件中的compile_args = ['-O3', '-DKENLM_MAX_ORDER=6', '-std=c++11', '-fPIC']
替换为compile_args = ['-O3', '-DKENLM_MAX_ORDER=6', '-std=c++14', '-fPIC']
(参考安装ctcdecode,pytorch大于1.4(1.5以上版本)_ctcdecode安装_须臾一念的博客-CSDN博客)
2.我的测试环境:
OS: Ubuntu 18.04
python: python3.10
CUDA: 12.0
pytorch: 2.0
3.pip install wget
因为ctcdecode需要wget包,如果不安装会报缺少“wget”包的错误
4.进入到ctcdecode文件夹中,pip install .