Skip to content

Commit 51744d3

Browse files
authored
Merge pull request #4818 from Neimhin/patch-1
Update install_srilm.sh
2 parents ad88b3b + 3675219 commit 51744d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/extras/install_srilm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ fi
1717
echo "GNU awk is not installed so SRILM will probably not work correctly: refusing to install" && exit 1;
1818

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

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

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

0 commit comments

Comments
 (0)