getwordlist.pl

来自「htk的第三章例题的源代码,按照htkbook做就可以了,很快就会熟悉 htk的」· PL 代码 · 共 14 行

PL
14
字号
#!/usr/bin/perl# This little script will extract the full word list from any ARPA type language model# Pass language model as a parameter or on standard in; results are written to standard output# (c) Gareth Moore 2002while (<>){    if (/\\2-grams/) {exit;}    if (/^\-*\d+\.\d+\s+(\S+)\s/) {print $1."\n"};}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?