Skip to content

Commit 8c3c0bc

Browse files
authored
Update install_srilm.sh
1 parent ae8cbe8 commit 8c3c0bc

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
@@ -16,15 +16,15 @@ fi
1616
! command -v gawk > /dev/null && \
1717
echo "GNU awk is not installed so SRILM will probably not work correctly: refusing to install" && exit 1;
1818

19-
if [ $# -ne 3 ]; then
19+
if [ $# -ne 4 ]; then
2020
echo "SRILM download requires some information about you"
2121
echo
22-
echo "Usage: $0 <name> <organization> <email>"
22+
echo "Usage: $0 <name> <organization> <email> <address>"
2323
exit 1
2424
fi
2525

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

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

0 commit comments

Comments
 (0)