Beginner's Constraint Grammar HOWTO
Download
- Apertium
How to download Apertium for Ubunto. First open your terminal and copy/paste
First we have to install prerequisites.
- Open terminal and copy/paste this code :
sudo apt-get install subversion build-essential g++ pkg-config libxml2 \
libxml2-dev libxml2-utils xsltproc flex automake autoconf libtool libpcre3-dev
- Then terminal will ask for your password like this: [sudo] password for user.When you write it press Enter.
If you have already prerequisites, it will show you X upgraded, X newly installed, X to remove and X not upgraded. If you don't have it,you have to wait until terminal show you user@ubuntu:~$.This mean the process is ready(downaload and instal prerequisites) and terminal wait for your next step, which is to copy/paste this code:
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk apertium
This will download apertium from SVN.The process will take a few minutes. When the downloading ends we are ready to install apertium.
- Constraint grammar
To use CG we must have lttoolbox(we have it),apertium(we have it too) and ICU(we have to install it now).
How to install ICU for Ubunto. Open terminal and copy/paste this code:
apt-get install libicu-dev
Now we can install and CG.
Install
- Apertium
Before installing apertium we have to install lttoolbox(which has been downloaded whit apertium at same time).To do that you have to copy/paste this code:
cd apertium
cd lttoolbox/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make
sudo make install
sudo ldconfig
Terminal will ask us for password again [sudo] password for user: When you write it press Enter.
Wait to show you terminal user@ubuntu:~/apertium/lttoolbox$ then copy/paste this code:
cd ..
cd apertium/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make
sudo make install
sudo ldconfig
This will start installing apertium.You have to wait a few minutes.When shows you
vasil@ubuntu:~/apertium/apertium$ sudo ldconfig
vasil@ubuntu:~/apertium/apertium$
the process is ready.
- Constraint grammar
How to install CG.Open terminal and copy/paste this code:
$ svn co --username anonymous --password anonymous http://beta.visl.sdu.dk/svn/visl/tools/vislcg3/trunk vislcg3
$ cd vislcg3
$ sh autogen.sh --prefix=<prefix>
$ make
$ make install
It will ask you for password [sudo] password for user: . When you write it press Enter.
We are ready.