1 用法
utils/int2sym.pl -f 2:10000 phones.txt
2 中文解釋
輸入參數【-f】
將上一層管道流中的第2列到第10000列(沒有到10000列也截止到有效列位置)的所有數字全部根據phones.txt進行轉換爲對應文字
【phones.txt的內容】
<eps> 0
SIL 1
a1 2
ie2 3
ing4 4
#0 6
#1 7
...
...
3 使用案例
gunzip -c ali.1.gz | ali-to-phones final.mdl ark:- ark,t:| utils/int2sym.pl -f 2:10000 phones.txt | head -n 5 | less
hao-demowav sil zh ong1 sh ix2 ii iu2 ii ie2 ii iu3 x iang1 ii ing4 g ui1 m o2 d e5 g ui1 h ua4 sil