Thursday, May 9, 2013

Install SRILM on linux machines and play with NLP to create language models

So here are few steps which should be followed once you decide to use SRILM if you are stuck . SRILM is a tool which is useful in language model creation and works both on linux device and windows . So here are are the steps:

  1. Download SRILM .
  2. Install all the TCL developer libraries: tcl8.4-dev, tcl-dev, tcl-lib, tclx8.4, tclx8.4-dev,gawk
  3. Uncomment the “SRILM =” line in the top level Makefile and replace the existing path with the absolute path of the SRILM top-level directory on your system (where the Makefile resides)
  4. Make following changes if neccesary :
in common/Makefile.machine.i686):
8<----------------------------------
# Tcl support (standard in Linux)
TCL_INCLUDE = -I/usr/include/tcl8.4
TCL_LIBRARY =  -L/usr/lib/tcl8.4 -ltcl
8<----------------------------------
 
 Now you may run 'make' and see if its working all fine. Have fun with models and NLP.
 
Beevolve

No comments:

Post a Comment