Difference between revisions of "Compiling the language pair"

From Apertium
Jump to navigation Jump to search
(→‎Compiling the language pair: remove manually compiling giellatekno and make the instructions using the packages)
Line 1: Line 1:
== Compiling the language pair ==
== Compiling the language pair ==

; Prequisites
Install giellatekno first:
<pre>
apt install giella-core giella-shared
</pre>


; Get the source code
; Get the source code
Line 9: Line 15:
# svn co https://victorio.uit.no/langtech/trunk/langs/est giella-est
# svn co https://victorio.uit.no/langtech/trunk/langs/est giella-est
svn co https://victorio.uit.no/langtech/trunk/experiment-langs/est/ giella-est
svn co https://victorio.uit.no/langtech/trunk/experiment-langs/est/ giella-est
svn co https://victorio.uit.no/langtech/trunk/giella-core core
svn co https://victorio.uit.no/langtech/trunk/giella-shared/ giella-shared
cd ..
cd ..
mkdir apertium
mkdir apertium
Line 22: Line 26:
<pre>
<pre>
cd giellatekno
cd giellatekno

cd core
./autogen.sh
./configure --disable-silent-rules --prefix=$PREFIX/local
make install

cd ..

cd giella-shared
./autogen.sh
./configure --disable-silent-rules --prefix=$PREFIX/local
make install

echo "export GTCORE=$HOME/giellatekno/core/" >> $HOME/.profile
echo "export GIELLA_SHARED=$HOME/giellatekno/giella-shared/" >> $HOME/.profile
. ~/.profile

cd ..


cd giella-est
cd giella-est

Revision as of 15:48, 28 May 2017

Compiling the language pair

Prequisites

Install giellatekno first:

apt install giella-core giella-shared
Get the source code
mkdir giellatekno
cd giellatekno
svn co https://victorio.uit.no/langtech/trunk/langs/fin giella-fin
# svn co https://victorio.uit.no/langtech/trunk/langs/est giella-est
svn co https://victorio.uit.no/langtech/trunk/experiment-langs/est/ giella-est
cd ..
mkdir apertium
cd apertium
svn co https://svn.code.sf.net/p/apertium/svn/incubator/apertium-fin-est
cd ..
Build Giellatekno components
cd giellatekno

cd giella-est
./autogen.sh -l
./configure --with-hfst --without-xfst --enable-apertium 
make V=1
cd ..

cd giella-fin
./autogen.sh -l
./configure --with-hfst --without-xfst --enable-apertium 
make V=1
cd ..

cd ..
Build Apertium components
cd apertium

cd apertium-fin-est
./autogen.sh --with-lang1=../../giellatekno/giella-fin/tools/mt/apertium --with-lang2=../../giellatekno/giella-est/tools/mt/apertium \
  --prefix=$PREFIX/local
make

cd ..

Tips

If you don't need to work on monolingual data use the nightly repos:

apt install giella-fin giella-est