зеркало из https://github.com/mozilla/kaldi.git
sandbox/language_id: Adding logistic-regression.conf config file, for setting max_steps and normalizer for the classifier.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/language_id@3660 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
c2397e1d3b
Коммит
1298918014
|
@ -0,0 +1,2 @@
|
|||
--max-steps=20
|
||||
--normalizer=0.002
|
|
@ -10,7 +10,7 @@
|
|||
set -e
|
||||
mfccdir=`pwd`/mfcc
|
||||
vaddir=`pwd`/mfcc
|
||||
|
||||
config=conf/logistic-regression.conf
|
||||
|
||||
awk '{print $2}' data/train/utt2lang | sort -u | \
|
||||
awk '{print $1, NR-1}' > exp/ivectors_train/languages.txt
|
||||
|
@ -23,7 +23,8 @@ train_ivectors=exp/ivectors_train/ivector.scp
|
|||
classes="ark:utils/sym2int.pl -f 2 exp/ivectors_train/languages.txt data/train/utt2lang|"
|
||||
|
||||
. path.sh
|
||||
logistic-regression-train scp:$train_ivectors "$classes" $model 2>$log
|
||||
logistic-regression-train --config=$config scp:$train_ivectors \
|
||||
"$classes" $model 2>$log
|
||||
|
||||
posterior_output=posteriors
|
||||
scores=posteriors
|
||||
|
|
Загрузка…
Ссылка в новой задаче