This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build-essential | |
gfortran | |
libgfortran3 | |
python-dev(python3-dev) | |
libblas-dev | |
libatlas-base-dev | |
cython | |
g++ | |
zlib1g-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getdata.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#silのみ出力 | |
utils/make_lexicon_fst_silprob.pl $tmpdir/lexiconp_silprob_disambig.txt $s rcdir/silprob.txt $silphone '#'$ndisambig | \ | |
#置き換え処理 | |
sed 's=\#[0-9][0-9]*=<eps>=g' | \for indirect one, use twice the learning rate | |
#音素を入力、単語を出力として重み付き状態変換器の作成 | |
fstcompile --isymbols=$dir/phones.txt --osymbols=$dir/words.txt \ | |
--keep_isymbols=false --keep_osymbols=false | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for x in train test; do | |
steps/make_mfcc.sh --cmd "$train_cmd" --nj $njobs \ | |
data/$x exp/make_mfcc/$x $mfccdir || exit 1; | |
steps/compute_cmvn_stats.sh data/$x exp/make_mfcc/$x $mfccdir || exit 1; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
utils/subset_data_dir.sh data/train 1000 data/train.1k || exit 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"--mono" #モノフォン | |
"--quinphone" #クインフォン | |
"--reverse" #逆順 | |
"--transition-scale" #スケール変換 | |
"--self-loop-scale" #自己学習の回数スケール |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z "$model" ]; then # if --model <mdl> was not specified on the command lin | |
e... | |
if [ -z $iter ]; then model=$srcdir/final.mdl; | |
else model=$srcdir/$iter.mdl; fi | |
fi | |
for f in $sdata/1/feats.scp $sdata/1/cmvn.scp $model $graphdir/HCLG.fst; do | |
[ ! -f $f ] && echo "decode.sh: no such file $f" && exit 1; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{aligned} | |
P(E) & = \sum_i^n (\frac{t_i}{T})^2 \\ | |
\end{aligned} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy import * | |
import sys, time | |
from pybrain.rl.environments.mazes import Maze, MDPMazeTask | |
from pybrain.rl.learners.valuebased import ActionValueTable | |
from pybrain.rl.agents import LearningAgent | |
from pybrain.rl.learners import Q, SARSA | |
from pybrain.rl.experiments import Experiment | |
from pybrain.rl.environments import Task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rnn = RNN() | |
y = rnn.step(x) # x is an input vector, y is the RNN's output vector | |
OlderNewer