Difference between revisions of "Compiling the language pair"

From Apertium
Jump to navigation Jump to search
m
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Compiling the language pair ==
 
== Compiling the language pair ==
  +
  +
; Prequisites
  +
Install giellatekno first from the nightly repos:
  +
<pre>
  +
apt install giella-core giella-shared
  +
</pre>
   
 
; Get the source code
 
; Get the source code
Line 7: Line 13:
 
cd giellatekno
 
cd giellatekno
 
svn co https://victorio.uit.no/langtech/trunk/langs/fin giella-fin
 
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/langs/est giella-est
svn co https://victorio.uit.no/langtech/trunk/gtcore core
+
svn co https://victorio.uit.no/langtech/trunk/experiment-langs/est/ giella-est
 
cd ..
 
cd ..
 
mkdir apertium
 
mkdir apertium
Line 20: Line 26:
 
<pre>
 
<pre>
 
cd giellatekno
 
cd giellatekno
 
cd core
 
./autogen.sh
 
./configure --disable-silent-rules --prefix=$PREFIX/local
 
make install
 
cd ..
 
   
 
cd giella-est
 
cd giella-est
./autogen.sh
+
./autogen.sh -l
 
./configure --with-hfst --without-xfst --enable-apertium
 
./configure --with-hfst --without-xfst --enable-apertium
 
make V=1
 
make V=1
Line 34: Line 34:
   
 
cd giella-fin
 
cd giella-fin
 
./autogen.sh -l
 
; set the parameter names so that the file names for Apertium to use later on will be correct
 
 
cp tools/mt/apertium/Makefile.am tools/mt/apertium/Makefile.original
 
cat tools/mt/apertium/Makefile.original \
 
| sed 's/APERTIUM_TARGET_LANGS=und/APERTIUM_TARGET_LANGS=est/' \
 
| sed 's/APERTIUM_TARGET_LANG_NAME=apertium-und/APERTIUM_TARGET_LANG_NAME=apertium-fin-est' \
 
> tools/mt/apertium/Makefile.am
 
 
./autogen.sh
 
 
./configure --with-hfst --without-xfst --enable-apertium
 
./configure --with-hfst --without-xfst --enable-apertium
 
make V=1
 
make V=1
Line 62: Line 53:
   
 
cd ..
 
cd ..
  +
</pre>
  +
  +
== Tips ==
  +
If you don't need to work on monolingual data use the nightly repos:
  +
<pre>
  +
apt install giella-fin giella-est-experimental
 
</pre>
 
</pre>
   

Latest revision as of 16:53, 28 May 2017

Compiling the language pair[edit]

Prequisites

Install giellatekno first from the nightly repos:

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[edit]

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

apt install giella-fin giella-est-experimental