trunk: Compilation fix to test code; minor cosmetic fix.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3352 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Dan Povey 2013-12-25 05:33:22 +00:00
Родитель 40a378fa1a
Коммит 3976573464
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -340,7 +340,7 @@ void UnitTestPostProcess() {
op.max_f0 = 400; op.max_f0 = 400;
Matrix<BaseFloat> m, m2; Matrix<BaseFloat> m, m2;
Compute(op, waveform, &m); Compute(op, waveform, &m);
PostProcessOptions postprop_op; PostProcessPitchOptions postprop_op;
postprop_op.pov_nonlinearity = 2; postprop_op.pov_nonlinearity = 2;
PostProcessPitch(postprop_op, m, &m2); PostProcessPitch(postprop_op, m, &m2);
std::string outfile = "keele/"+num+"-processed-kaldi.txt"; std::string outfile = "keele/"+num+"-processed-kaldi.txt";
@ -359,7 +359,7 @@ void UnitTestDeltaPitch() {
for (int32 j = 2; j < num_frames - 2; j++) for (int32 j = 2; j < num_frames - 2; j++)
output_feat2(j) = 1.0 / 10.0 * output_feat2(j) = 1.0 / 10.0 *
(-2.0 * feat(j - 2) - feat(j - 1) + feat(j + 1) + 2.0 * feat(j + 2)); (-2.0 * feat(j - 2) - feat(j - 1) + feat(j + 1) + 2.0 * feat(j + 2));
PostProcessOptions op; PostProcessPitchOptions op;
op.delta_pitch_noise_stddev = 0; op.delta_pitch_noise_stddev = 0;
ExtractDeltaPitch(op, feat, &output_feat); ExtractDeltaPitch(op, feat, &output_feat);
if (!output_feat.ApproxEqual(output_feat2, 0.05)) { if (!output_feat.ApproxEqual(output_feat2, 0.05)) {

Просмотреть файл

@ -36,7 +36,7 @@ int main(int argc, char *argv[]) {
"Usage: nnet-subset-egs [options] <egs-rspecifier> [<egs-wspecifier2> ...]\n" "Usage: nnet-subset-egs [options] <egs-rspecifier> [<egs-wspecifier2> ...]\n"
"\n" "\n"
"e.g.\n" "e.g.\n"
"nnet-get-egs [args] ark:- | nnet-subset-egs --n=1000 ark:- ark:subset.egs\n"; "nnet-subset-egs [args] ark:- | nnet-subset-egs --n=1000 ark:- ark:subset.egs\n";
int32 srand_seed = 0; int32 srand_seed = 0;
int32 n = 1000; int32 n = 1000;