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

From Apertium
Jump to navigation Jump to search
(configure, not autogen.sh ??)
 
(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 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 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
Line 8: Line 10:
   
 
<pre>
 
<pre>
$ ./autogen.sh --with-lang1=/path/to/giellatekno/langs/sme/tools/mt/apertium --with-lang2=/path/to/giellatekno/langs/smn/tools/mt/apertium
+
./configure--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>
   

Latest revision as of 09:01, 23 January 2023

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:

./configure--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