Skip to content

Commit

Permalink
not to use length() in awk command. fix typo in cmd.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Fujita committed Nov 12, 2019
1 parent d20ade8 commit 9a0f211
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions egs/callhome/v1/cmd.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Modify this file according to a job scheduling system in your cluster.
# For more information about cmd.sh see http://kaldi-asr.org/doc/queue.html.
#
# If you use your local machine, use "run.sh".
# export train_cmd="run.sh"
# export infer_cmd="run.sh"
# export simu_cmd="run.sh"
# If you use your local machine, use "run.pl".
# export train_cmd="run.pl"
# export infer_cmd="run.pl"
# export simu_cmd="run.pl"

# If you use Grid Engine, use "queue.pl"
export train_cmd="queue.pl --mem 32G -l 'hostname=c*'"
Expand Down
2 changes: 1 addition & 1 deletion egs/callhome/v1/run_prepare_shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ if [ $stage -le 0 ]; then
fi
unzip sim_rir_8k.zip -d data/sim_rir_8k
find $PWD/data/sim_rir_8k -iname "*.wav" \
| awk '{split($1,A,/[\/\.]/); print A[length(A)-3]"_"A[length(A)-1], $1}' \
| awk '{n=split($1,A,/[\/\.]/); print A[n-3]"_"A[n-1], $1}' \
| sort > data/simu_rirs_8k/wav.scp
awk '{print $1, $1}' data/simu_rirs_8k/wav.scp > data/simu_rirs_8k/utt2spk
utils/fix_data_dir.sh data/simu_rirs_8k
Expand Down
8 changes: 4 additions & 4 deletions egs/mini_librispeech/v1/cmd.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Modify this file according to a job scheduling system in your cluster.
# For more information about cmd.sh see http://kaldi-asr.org/doc/queue.html.
#
# If you use your local machine, use "run.sh".
# export train_cmd="run.sh"
# export infer_cmd="run.sh"
# export simu_cmd="run.sh"
# If you use your local machine, use "run.pl".
# export train_cmd="run.pl"
# export infer_cmd="run.pl"
# export simu_cmd="run.pl"

# If you use Grid Engine, use "queue.pl"
export train_cmd="queue.pl --mem 16G -l 'hostname=c*'"
Expand Down
2 changes: 1 addition & 1 deletion egs/mini_librispeech/v1/run_prepare_shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ $stage -le 0 ]; then
fi
unzip sim_rir_8k.zip -d data/sim_rir_8k
find $PWD/data/sim_rir_8k -iname "*.wav" \
| awk '{split($1,A,/[\/\.]/); print A[length(A)-3]"_"A[length(A)-1], $1}' \
| awk '{n=split($1,A,/[\/\.]/); print A[n-3]"_"A[n-1], $1}' \
| sort > data/simu_rirs_8k/wav.scp
awk '{print $1, $1}' data/simu_rirs_8k/wav.scp > data/simu_rirs_8k/utt2spk
utils/fix_data_dir.sh data/simu_rirs_8k
Expand Down

0 comments on commit 9a0f211

Please sign in to comment.