How to configure SRILM in Ubuntu9.1032-bit System

Source: Internet
Author: User
In Ubuntu9.1032-bit system, the SRILM configuration details are described in this article based on several articles on SRILM configuration. Thanks to them, especially 52nlp, first install the dependent software package: 1.c/ c ++ compiler: compiler gcc3.4.3 and later. My tool is gcc4.42.GNUmake, which is used to build and manage projects and explains the commands in Makefile, describes the compilation sequence and rules of all files in the project. This is to control SRI

For details about SRILM configuration in Ubuntu 9.10 32-bit system, this article is based on several articles on SRILM configuration. Thank you, especially 52nlp.

First, install the dependent software package:
1. c/c ++ compiler: gcc 3.4.3 and later. My version is gcc 4.4.
2. GNU make: a tool for building and managing projects. It explains the commands in Makefile and describes the compilation sequence and rules of all files in the project. This is to control the compilation and installation of SRILM.
3. GNU gawk: The awk programming language of GNU. It is inconvenient and time-consuming to modify, compare, and extract text data using c or passcal. awk can be completed in a short program. Here are some script files in SRILM.
4. GNU gzip: a decompression software written in C language. This is to enable SRILM to process compressed files with the. Z and. GZ suffixes.
5.bzip2: data compression software with higher compression efficiency. This is the compression file that enables srilmto process the suffix .bz2.
6. P7zip: data compression software. This enables SRILM to process compressed 7-zip files.
7. Tcl supports embedded scripting language. It is used for Script Programming and testing. This is for SRILM testing. It is best to install tcl8.x and tcl8.x-dev.
8. csh: A Unix shell. (This is very important. There is a problem in the installation process for a long time, and the reason why csh is not installed is found at last ).

Installation Process:

1. Download The SRILM. tgz compressed package
Link: Workshop. I am using version 1.5.8. The installation directory is/home/moses/tools/srilm.

Ii. Modify the Makefile file (under the srilm directory)
1. find this line: # SRILM =/home/speech/stolcke/project/srilm/devel, and enter the srilm installation path in another line, SRILM =/home/moses/tools/srilm or SRILM = $ (PWD)
2. locate this line: MACHINE_TYPE: = $ (shell $ (SRILM)/sbin/machine-type), add # comment out before it, and start another line with the input: MACHINE_TYPE: = i686-gcc4. This row tells Makefile to see the settings in/home/user/srilm/common/Makefile. machine. i686-gcc4.

3. Tell Makefile about the Ubuntu system settings, that is, use the editor to modify the files in the/home/moses/tools/srilm/common directory: Makefile. machine. i686-gcc4
1. Find:
GCC_FLAGS =-march = athlon64-m64-Wreturn-type-Wimplicit
CC = $ (GCC_PATH) gcc $ (GCC_FLAGS)-Wimplicit-int
CXX = $ (GCC_PATH) g ++ $ (GCC_FLAGS)-DINSTANTIATE_TEMPLATES
This is to tell the SRILM system to use compiler (c and c ++), which meets the installation conditions and does not need to be modified.
2. Find:
# Tcl support (standard in Linux)
TCL_INCLUDE =
TCL_LIBRARY =

Change to # Tcl support (standard in Linux)
TCL_INCLUDE =-I/user/include/tcl8.5
TCL_LIBRARY =-L/user/lib/tcl8.5

This is to tell the SRILM function library (TCL) installation location in the system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.