设为首页 收藏本站
查看: 2736|回复: 0

HTK在win7下安装的一些问题

[复制链接]

尚未签到

发表于 2015-5-19 10:00:13 | 显示全部楼层 |阅读模式
  昨天晚上滑雪回来之后也不想干别的事情了,就想着HTK的问题。
  在网上找了一些教程和资料,也就开始装了起来,但是却发现还是碰到了许多的问题。
  在用UE打开readme文件后发现了一些相关的说明,如下所示:
  Compiling & Installing HTK under Windows
========================================
Prerequisites:
    * HTK has been verified to compile using Microsoft Visual Studio.                          //  
    * For testing, you will require a Perl interpreter such as                                       //需要安装ActicePerl解释器
      ActivePerl.  
    * You will need a tool such as 7-zip or winzip (commercial) for unpacking
      the HTK source code archive.
    * It is helpful if you have some familiarity with using the DOS
      command line interface, as you will need to interact with it in
      order to compile, install and run HTK.
    * Ensure that your PATH contains                                                                     //路径里面要包含如下的路径
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin
      Or if you are using older versions:
      C:\Program Files\Microsoft Visual Studio\VC98\bin
      
  Compilation:                                                                                                     //安装过程
   1. Unpack the HTK sources using 7-zip.
   2. Open a DOS command window: Click Start, select Run type cmd at
      the prompt and click OK.
   3. cd into the directory in which you unpacked the sources.
   4. cd into the htk directory. Type:
  cd htk
  5. Create a directory for the library and tools. Type:
  mkdir bin.win32
  6. Run VCVARS32 (it should be in your path, see prerequisites above)
   7. Build the HTK Library, which provides the common functionality
      used by the HTK Tools. Enter the following commands:
  cd HTKLib
   nmake /f htk_htklib_nt.mkf all
   cd ..
  8. Build the HTK Tools
  cd HTKTools
   nmake /f htk_htktools_nt.mkf all
   cd ..
   cd HLMLib
   nmake /f htk_hlmlib_nt.mkf all
   cd ..
   cd HLMTools
   nmake /f htk_hlmtools_nt.mkf all
   cd ..
  Installation:
The HTK tools have now been built and are in the bin.win32
directory. You should add this directory to your PATH, so that you can
run them easily from the command line in future.
  
Testing the Installation                                                                                          //测试
========================
  Among the samples on the HTK website you'll find the HTKDemo package
that can be used to test your installation. See
http://htk.eng.cam.ac.uk/download.shtml for download instructions.
  As an initial test of the installation please run the HTK
demonstration using the configuration file
HTKDemo/configs/monPlainM1S1.dcf. There is a README file in the                 //在readme文件中会讲到该测试例子的详细细节
HTKDemo directory explaining the operation of the demonstration in
detail but, in short, you need to run the demonstration script passing
it the configuration file configs/monPlainM1S1.dcf as input.
To test the language modelling tools you should follow the tutorial
in the HTK book, using the files in the LMTutorial/ directory.
  Before running the demo make sure you have compiled all the HTK tools
and the executables are in your PATH, i.e. just typing 'HInit' at the
commandline prints a short usage summary. To run the demonstration
type:
  $ cd HTKDemo
$ ./runDemo configs/monPlainM1S1.dcf
  
  其实在readme文件中已经讲到了具体的install的方法了。耐心的看看英文就应该能明白。http://cqusuperyang.blog.163.com/blog/static/3416516020111022372230/这里面是一个按照此步骤进行的一个install的教程,而ActivePerl的下载文件可以在爱问上下载http://ishare.iask.sina.com.cn/f/23602373.html这里可以免费进行下载。
  还有在进行测试的时候会出现的问题是
  1.must be in derectory HTKDemo to run this script  这个问题纠结了我半天。后来在网上找了一些前人的经验,具体可以看测试中的用到的pl文件,用ultraedit打开,在里面会有这一行语句
  ($get_dir =~ "HTKDEMO") || die "Must be in directory HTKDemo to run this script\n";
  前人的方法是直接删掉这一句(具体的我不知道对不对),经验证,可以通过。
  2.不能打开文件的错误。cannot open ??? file
  需要在HTKDemo文件夹下建立test, proto,hmms 三个文件夹,并在hmms文件夹中建立三个子文件夹hmm.0,hmm.1,hmm.2
  之后再运行README中的命令
  测试例子通过。
  最后推荐大家用google,不用搜狗和百度。google作为搜索引擎的能力比下面的两个要好很多,也更人性化(已经经过多次验证)。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-68436-1-1.html 上篇帖子: win7 VS2008下M8应用程序开发平台搭建 下篇帖子: Win7 下 VS2005 不能断点调试解决办法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表