Difference between revisions of "English and Kazakh"
Jump to navigation
Jump to search
Assem250586 (talk | contribs) |
Assem250586 (talk | contribs) |
||
Line 94: | Line 94: | ||
sudo ldconfig |
sudo ldconfig |
||
</pre> |
</pre> |
||
=== Compile and install apertium-lex-tools === |
|||
=== Install English--Kazakh language pair data from incubator === |
=== Install English--Kazakh language pair data from incubator === |
Revision as of 08:59, 8 June 2012
Contents
- 1 Starting work on Apertium English to Kazakh
- 1.1 Installing what is needed
- 1.1.1 Operating System
- 1.1.2 Install build essentials, etc.
- 1.1.3 Install VISLCG3
- 1.1.4 Install HFST
- 1.1.5 Download apertium, lttoolbox and eng-kaz data from SVN
- 1.1.6 Compile and install lttoolbox
- 1.1.7 Compile and install apertium
- 1.1.8 Compile and install apertium-lex-tools
- 1.1.9 Install English--Kazakh language pair data from incubator
- 1.1 Installing what is needed
Starting work on Apertium English to Kazakh
These notes are basically for Anel, Aizan and Assem who have started to develop this language pair...
Installing what is needed
Operating System
Install a suitable GNU/Linux system such as Debian, Ubuntu, Mint...
Install build essentials, etc.
Open a terminal window and type
sudo apt-get install subversion build-essential g++ pkg-config gawk libxml2 \ libxml2-dev libxml2-utils xsltproc flex automake autoconf libtool libpcre3-dev cmake libicu-dev libboost-dev libgoogle-perftools-dev
enter your password and Wait till the packages are downloaded and installed.
Install VISLCG3
- Main article: Apertium and Constraint Grammar
svn co http://beta.visl.sdu.dk/svn/visl/tools/vislcg3/trunk vislcg3 cd vislcg3 ./cmake.sh make -j3 make install
Install HFST
This language pair uses the Helsinki Finite State Toolkit for Kazakh generation, so we need to install it, and its dependencies.
Install OpenFST
- Main article: OpenFST
wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.3.1.tar.gz && tar -xzvf openfst-1.3.1.tar.gz && cd openfst-1.3.1/ && ./configure && make && sudo make install
Install Foma
- Main article: Foma
svn checkout http://foma.googlecode.com/svn/trunk/foma/ foma cd foma make sudo make install
Install HFST
- Main article: HFST
svn co https://hfst.svn.sourceforge.net/svnroot/hfst/trunk/hfst3 cd hfst3/ autoreconf -i ./configure --enable-lexc --with-foma make make install sudo ldconfig
Download apertium, lttoolbox and eng-kaz data from SVN
cd ~ mkdir apertium-sources cd apertium-sources svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium svn co http://apertium.svn.sourceforge.net/svnroot/apertium/incubator/apertium-eng-kaz
Compile and install lttoolbox
cd lttoolbox/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh make sudo make install sudo ldconfig
Compile and install apertium
cd .. cd apertium/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh make sudo make install sudo ldconfig
Compile and install apertium-lex-tools
Install English--Kazakh language pair data from incubator
cd .. cd apertium-eng-kaz/ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh make sudo make install