Compiling the North Saami - Inari Saami translator
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