Difference between revisions of "Compiling the North Saami - Inari Saami translator"

From Apertium
Jump to navigation Jump to search
 
Line 1: Line 1:
   
  +
This documentation works for any language pair in the Giella infrastructure (cf [http://giellalt.uit.no giellalt.uit.no], especially on how to [https://giellalt.uit.no/infra/GettingStarted.html get started], see also the [https://giellalt.uit.no/mt/MachineTranslation.html documentation on machine translation]). Exchange '''sme''' and '''smn''' with the lang1 and lang2 codes (taken from the obvious order ''apertium-lang1-lang2'') in the commands below.
You must have set up '''sme''' (lang1) and '''smn''' (lang2) in a version of the ''giella'' infrastructure (cf [http://giellalt.uit.no giellalt.uit.no]), and compiled these two languages with the following setup:
 
  +
 
You must have checked out and set up '''sme''' (lang1) and '''smn''' (lang2) in a version of the Giella infrastructure, and compiled these two languages with the following setup (commands given in their respective folders '''sme''' and '''smn'''):
 
<pre>
 
<pre>
 
./configure --with-hfst --enable-apertium --enable-reversed-intersect && make -j
 
./configure --with-hfst --enable-apertium --enable-reversed-intersect && make -j

Latest revision as of 04:51, 3 April 2020

This documentation works for any language pair in the Giella infrastructure (cf giellalt.uit.no, especially on how to get started, see also the documentation on machine translation). Exchange sme and smn with the lang1 and lang2 codes (taken from the obvious order apertium-lang1-lang2) in the commands below.

You must have checked out and set up sme (lang1) and smn (lang2) in a version of the Giella infrastructure, and compiled these two languages with the following setup (commands given in their respective folders sme and smn):

 ./configure --with-hfst --enable-apertium --enable-reversed-intersect && make -j

Given that this is set up, go to the apertium-sme-smn catalogue (downloaded from github), and do:

./autogen.sh --with-lang1=/path/to/giellatekno/langs/sme/tools/mt/apertium --with-lang2=/path/to/giellatekno/langs/smn/tools/mt/apertium

make

To test the setup, do:

echo "sámit" | apertium -d . sme-smn-dgen
säämih