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

From Apertium
Jump to navigation Jump to search
(... and not .configure)
(3 intermediate revisions by the same user not shown)
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 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>
  +
./configure --with-hfst --enable-apertium --enable-reversed-intersect && make -j
  +
</pre>
   
 
Given that this is set up, go to the apertium-sme-smn catalogue (downloaded from [http://github.com/apertium github]), and do:
 
If you have the prerequisites set up, go to the apertium-sme-smn catalogue, and do:
 
   
 
<pre>
 
<pre>
$ ./autogen.sh --with-lang1=/path/to/giellatekno/langs/sme/tools/mt/apertium --with-lang2=/path/to/giellatekno/langs/smn/tools/mt/apertium
+
./autogen.sh --with-lang1=/path/to/giellatekno/langs/sme/tools/mt/apertium --with-lang2=/path/to/giellatekno/langs/smn/tools/mt/apertium
   
$ make
+
make
  +
</pre>
   
  +
To test the setup, do:
$ echo "sámit" | apertium -d . sme-smn-dgen
 
  +
<pre>
 
echo "sámit" | apertium -d . sme-smn-dgen
 
säämih
 
säämih
 
 
</pre>
 
</pre>
   

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