首先安装openfst,如果你想继续安装pyfst的话,你需要安装openfst1.3.3的版本,因为pyfst始终不跟新,只支持到openfst1.3.3
打开openfst主页,下载1.3.3的版本http://www.openfst.org/twiki/bin/view/FST/FstDownload
解压文件,运行
./configure
make
sudo make install
安装成功
通过这里测试是否成功:http://blog.csdn.net/chinabing/article/details/50724575
如果编译失败,通过https://github.com/vchahun/fast_umorph/issues/1来修改interval-set.h文件
openfst需要c++11,安装链接如下:
http://blog.csdn.net/lisonglisonglisong/article/details/21947255
在~/.bashrc中添加:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
到此,openfst差不多安装好了
接下来安装pyfst
sudo CFLAGS="-std=c++0x" pip install pyfst -i https://pypi.douban.com/simple
值得注意的是,镜像一定要用doubian的,因为pyfst一直没有更新,很多镜像已经没有pyfst的包了。
如果你看的时候,发现用豆瓣的镜像也会出现问题,请试用如下链接的镜像:
http://blog.csdn.net/d5224/article/details/52025897
2017年9月25日星期一
订阅:
博文评论 (Atom)
leetcode 17
17. Letter Combinations of a Phone Number Medium Given a string containing digits from 2-9 inclusive, return all possible l...
-
写在开头,以下是我在过程中遇到的一些问题 1.关于KNN算法代码里的一些问题 1.1关于numpy的sum用法 Check out the documentation for numpy.sum, paying particular attention to the ...
-
ptb的代码可以详见gitlab上的tensorflow/models/tutorials下,本文只详解他的数据前处理和模型部分。 1.运行 首先说一下他的运行 ,下载数据集: http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-e...
-
(本文来自于 官网,仅供学习使用,文中[*]表示见解释【*】) 目前为止,你已经能 create, initialize, save and load single variables了。但是当建立复杂的网络时,你需要共享大量的权值并且也许你需要一次性初始化它们,下面 介绍tf...
没有评论:
发表评论