Skip to content

Commit

Permalink
Merge pull request #4818 from Neimhin/patch-1
Browse files Browse the repository at this point in the history
Update install_srilm.sh
  • Loading branch information
danpovey committed Apr 30, 2024
2 parents ad88b3b + 3675219 commit 51744d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/extras/install_srilm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ fi
echo "GNU awk is not installed so SRILM will probably not work correctly: refusing to install" && exit 1;

if [ ! -f srilm.tgz ] && [ ! -f srilm.tar.gz ] && [ ! -d srilm ]; then
if [ $# -ne 3 ]; then
if [ $# -ne 4 ]; then
echo "SRILM download requires some information about you"
echo
echo "Usage: $0 <name> <organization> <email>"
echo "Usage: $0 <name> <organization> <email> <address>"
exit 1
fi

srilm_url="http://www.speech.sri.com/projects/srilm/srilm_download.php"
post_data="WWW_file=srilm-1.7.3.tar.gz&WWW_name=$1&WWW_org=$2&WWW_email=$3"
srilm_url="http://www.speech.sri.com/projects/srilm/srilm_download2.php"
post_data="file=1.7.3&name=$1&org=$2&email=$3&address=$4&license=on"

if ! wget --post-data "$post_data" -O ./srilm.tar.gz "$srilm_url"; then
echo 'There was a problem downloading the file.'
Expand Down

0 comments on commit 51744d3

Please sign in to comment.