[SRILM User List] Windows Subsystem for Linux and SRILM

Andreas Stolcke stolcke at icsi.berkeley.edu
Thu Dec 22 14:09:48 PST 2016


I had a chance to play with WSL (Windows Subystem for Linux 
<https://msdn.microsoft.com/en-us/commandline/wsl/about>) recently and 
test it with SRILM.  It works extremely well.

So instead of using native Windows binaries or Cygwin, there is now a 
third option for running SRILM on Windows.

1. Get a system running Windows 10

2. Follow the Installation Guide at the above link. (If you use cygwin 
it's a good idea to temporarily remove c:\cygwin\bin from your Windows 
executable search path first.)

3. Open a Bash window and type "sudo apt-get install make gcc g++" .

4. Untar or locate the SRILM tree on your disk.

5. Follow the standard SRILM build procedure (for Linux!). "make test" 
should come out cleanly, too.

Note the binaries produced (in $SRILM/bin/i686-m64) will be Linux 
binaries, and are compatible with any sufficiently recent Ubuntu system.

One  reason to use WSL instead of Cygwin is that complex shell scripts 
(like nbest-rover) will run MUCH faster.  The fork emulation in Cygwin 
is just too slow.

Happy holidays,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speech.sri.com/pipermail/srilm-user/attachments/20161222/ce20eecd/attachment.html>

More information about the SRILM-User mailing list