Difference between revisions of "Northern Sámi and Norwegian/Installation"
(update) |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
hfst3 doesn't work correctly with apertium-sme-nob yet, so we need to use the old hfst2 branch, along with Brian Croom's hfst-proc. |
|||
'''Installation''' |
|||
First, install the old hfst2 branch: |
|||
<pre> |
|||
svn co -r617 https://hfst.svn.sourceforge.net/svnroot/hfst/branches/hfst2 |
|||
cd hfst2 |
|||
autoreconf -i |
|||
./configure |
|||
⚫ | |||
sudo make install |
|||
</pre> |
|||
Developers will need the compilers (hfst, vislcg3, apertium) as well as the North Saami analyser, the translation program and the Norwegian generator. Ready-compiled (hfst, vislcg3) files as well as source file for downloands and compilation are found via these links: |
|||
Then, hfst-proc (the hfst2-branch installs an older hfst-proc, so make sure you do this step after installing branches/hfst2): |
|||
<pre> |
|||
svn co -r617 https://hfst.svn.sourceforge.net/svnroot/hfst/trunk hfst-trunk |
|||
cd hfst-trunk/hfst-proc |
|||
sh autogen.sh |
|||
⚫ | |||
sudo make install |
|||
</pre> |
|||
* [[Installation|Installation of Apertium]] |
|||
* [https://giellalt.github.io/infra/GettingStarted.html Installation of hfst, vislcg3 and the North Saami analyser] |
|||
* [https://github.com/apertium/apertium-nob/ Installation of the Norwegian generator] |
|||
* [https://github.com/apertium/apertium-sme-nob/ Installation of the North Saami - Norwegian translation program|] |
|||
The North Saami analyser should be compiled in ''lang-sme'' with the following configuration |
|||
./autogen.sh # thereafter follow the instructions wrt. giella-core |
|||
./configure --enable-apertium |
|||
⚫ | |||
The North Saami - Norwegian translation programs should be set up as follows. Assuming you have installed the apertium repositories in ''apertium'', the North Saami one in ''giellalt'' and both in the same directory, the following commands may be run in ''apertium-sme-nob'': |
|||
./configure --with-lang1=../../giellalt/lang-sme/tools/mt/apertium --with-lang2=../apertium-nob |
|||
⚫ | |||
If you've installed [[Bash completion]] and set the $GTHOME variable as per [https://giellalt.github.io/infra/GettingStarted.html Getting Started], you can just do "./autogen.sh -TAB" and it'll fill out the tools/mt/apertium path for you. |
|||
[[Category:Installation]] |
[[Category:Installation]] |
||
[[Category:Documentation in English]] |
|||
[[Category:Language pairs]] |
|||
[[Category:Northern Sámi and Norwegian]] |
Latest revision as of 12:47, 10 March 2024
Installation
Developers will need the compilers (hfst, vislcg3, apertium) as well as the North Saami analyser, the translation program and the Norwegian generator. Ready-compiled (hfst, vislcg3) files as well as source file for downloands and compilation are found via these links:
- Installation of Apertium
- Installation of hfst, vislcg3 and the North Saami analyser
- Installation of the Norwegian generator
- Installation of the North Saami - Norwegian translation program|
The North Saami analyser should be compiled in lang-sme with the following configuration
./autogen.sh # thereafter follow the instructions wrt. giella-core ./configure --enable-apertium make
The North Saami - Norwegian translation programs should be set up as follows. Assuming you have installed the apertium repositories in apertium, the North Saami one in giellalt and both in the same directory, the following commands may be run in apertium-sme-nob:
./configure --with-lang1=../../giellalt/lang-sme/tools/mt/apertium --with-lang2=../apertium-nob
make
If you've installed Bash completion and set the $GTHOME variable as per Getting Started, you can just do "./autogen.sh -TAB" and it'll fill out the tools/mt/apertium path for you.