title
title
unity
add the python to controller, so anywhere, python can be commanded
打开 python Win+r 弹出对话框 cmd 回车
弹出对话框 python ke
print("1000")
获取数据
切割训练集和数据集
模型构建
将列表中的元素改为大小写:
列表中元素索引.upper()/lower()
将数字转化为列表:list()
生成有规律的数字列表:range()
列表的遍历:for x in x
列表添加元素:数组名.append()
索引:数组名【】,从零计数
reverse是反转的意思
print =打印
輸入等於輸出 fsa
完成L的講解
cd /$kaldi_root/egs/wsj/s5
要在這底下執行
utils/prepare_lang.sh
查看lexicon.txt
<SIL> SIL
A EY1
BABY B EY1 B IY0
.....
第0項是詞 後面是音素
因此prepare_lang 要輸入的是'<SIL>'
而非'SIL'
fstdraw --isymbols=phones.txt --osymbols=words.txt L.fst > L.dot
dot -Tjpg L.dot > L.jpg
L_disambig.fst 解決同音字問題
ex 「樹木」與「數目」
B I E S
查看prepare_lang.sh
(B)egin
(E)nd
(I)nternal
(S)ingleton
可以查看 temp/01_learn/lexiconp.txt
/kaldi/tools/openfst/bin/fstdraw --isymbols=phones.txt --osymbols=words.txt L.fst > L.dot
/kaldi/tools/openfst/bin/fstprint --isymbols=phones.txt --osymbols=words.txt L_disambig.fst
軟連結
ln -s $kaldi_root/egs/wsj/s5/utils ./utils
ln -s $kaldi_root/egs/wsj/s5/step ./step
製作 nonsilence_phones.txt
>複製一份phones 將 SIL 刪除
製作optional_silence.txt
> SIL