Skip to content

Commit

Permalink
[egs] egs/tedlium/s5_r2 download Tedlium LMs from kaldi-asr.org (#2441)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-ryan-snyder authored and danpovey committed May 22, 2018
1 parent 1ab3df0 commit 72d89ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
17 changes: 17 additions & 0 deletions egs/tedlium/s5_r2/local/ted_download_lm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#
# Copyright 2018 David Snyder
# Apache 2.0
#
# This script downloads pre-built language models trained on the Cantab-Tedlium
# text data and Tedlium acoustic training data. If you want to build these
# models yourself, run the script local/ted_train_lm.sh.

set -e

echo "$0: downloading Tedlium 4 gram language models (it won't re-download if it was already downloaded.)"
wget --continue http://kaldi-asr.org/models/5/4gram_small.arpa.gz -P data/local/local_lm/data/arpa || exit 1
wget --continue http://kaldi-asr.org/models/5/4gram_big.arpa.gz -P data/local/local_lm/data/arpa || exit 1

exit 0

8 changes: 5 additions & 3 deletions egs/tedlium/s5_r2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ if [ $stage -le 3 ]; then
fi

if [ $stage -le 4 ]; then
# later on we'll change this script so you have the option to
# download the pre-built LMs from openslr.org instead of building them
# Download the pre-built LMs from kaldi-asr.org instead of building them
# locally.
local/ted_train_lm.sh
local/ted_download_lm.sh
# Uncomment this script to build the language models instead of
# downloading them from kaldi-asr.org.
# local/ted_train_lm.sh
fi

if [ $stage -le 5 ]; then
Expand Down

0 comments on commit 72d89ce

Please sign in to comment.