mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
from local
This commit is contained in:
parent
8431da5af4
commit
bb2e4cc2b6
Binary file not shown.
@ -213,10 +213,16 @@ fi
|
||||
|
||||
if [ $stage -le 9 ] && [ $stop_stage -ge 9 ]; then
|
||||
log "Stage 9: Split cuts by speaker id"
|
||||
gzip -d data/fbank/tedlium_cuts_test.json.gz
|
||||
|
||||
i=0
|
||||
for spk in $dl_dir/tedlium3/legacy/test/sph/*; do
|
||||
spk_id=${spk#*sph\/}
|
||||
spk_id=${spk_id%.sph}
|
||||
echo $spk_id
|
||||
cat data/fbank/tedlium_cuts_test.jsonl | grep speaker\":\ \"$spk_id\" > tedlium_cuts_test_$i.jsonl
|
||||
gzip tedlium_cuts_test_$i.jsonl
|
||||
i=`expr $i+1`
|
||||
done
|
||||
#cat data/fbank/tedlium_cuts_test.jsonl.gz | grep
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user