Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions egs/heroico/s5/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# conf/queue.conf in http://kaldi-asr.org/doc/queue.html for more information,
# or search for the string 'default_config' in utils/queue.pl or utils/slurm.pl.

export cmd="retry.pl queue.pl"
export train_cmd="retry.pl queue.pl"
export decode_cmd="retry.pl queue.pl --mem 2G"

Expand Down
37 changes: 0 additions & 37 deletions egs/heroico/s5/local/heroico_download.sh

This file was deleted.

2 changes: 1 addition & 1 deletion egs/heroico/s5/local/subs_prepare_data.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# input and output files

my $corpus = "OpenSubtitles2018.en-es.es";
my $corpus = "OpenSubtitles.en-es.es";
my $symbol_table = "data/lang/words.txt";
my $filtered = "data/local/tmp/subs/lm/es.txt";
my $oovs = "data/local/tmp/subs/lm/oovs.txt";
Expand Down
22 changes: 15 additions & 7 deletions egs/heroico/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ stage=0
datadir=/export/corpora5/LDC/LDC2006S37

# The corpus and lexicon are on openslr.org
speech="http://www.openslr.org/resources/39/LDC2006S37.tar.gz"
lexicon="http://www.openslr.org/resources/34/santiago.tar.gz"
#speech_url="http://www.openslr.org/resources/39/LDC2006S37.tar.gz"
lexicon_url="http://www.openslr.org/resources/34/santiago.tar.gz"

# Location of the Movie subtitles text corpus
subs_src="http://opus.lingfil.uu.se/download.php?f=OpenSubtitles2018/en-es.txt.zip"
subtitles_url="http://opus.lingfil.uu.se/download.php?f=OpenSubtitles2018/en-es.txt.zip"

. utils/parse_options.sh

Expand All @@ -26,14 +26,22 @@ set -u
tmpdir=data/local/tmp

if [ $stage -le 0 ]; then
# download the corpus from openslr
local/heroico_download.sh $speech $lexicon
if [ ! -d $datadir ]; then
echo "$0: please download and un-tar http://www.openslr.org/resources/39/LDC2006S37.tar.gz"
echo " and set $datadir to the directory where it is located."
exit 1
fi
if [ ! -s santiago.txt ]; then
echo "$0: downloading the lexicon"
wget -c http://www.openslr.org/resources/34/santiago.tar.gz
tar -xvzf santiago.tar.gz
fi
# Get data for lm training
local/subs_download.sh $subs_src
local/subs_download.sh $subtitles_url
fi

if [ $stage -le 1 ]; then
echo "Makin lists for building models."
echo "Making lists for building models."
local/prepare_data.sh $datadir
fi

Expand Down