Difference between revisions of "Northern Sámi and Norwegian/Installation"
m |
(update) |
||
Line 1: | Line 1: | ||
Prerequisites: |
|||
'''Installation''' |
|||
* apertium 3.3 or higher, see [[Minimal installation from SVN]] |
|||
* lttoolbox 3.3 or higher, see [[Minimal installation from SVN]] |
|||
* HFST 3.7.1 or higher, see [[HFST]] |
|||
** foma (from svn, last tested with revision 64), see [[foma]] |
|||
* vislcg3 (from svn, last tested with revision 9959), see [[CG]] |
|||
* apertium-nob, https://svn.code.sf.net/p/apertium/svn/languages/apertium-nob |
|||
* giella-sme, https://victorio.uit.no/langtech/trunk/langs/sme |
|||
** depends on giella-gtcore, https://victorio.uit.no/langtech/trunk/gtcore |
|||
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: |
|||
To install giella-sme, do: |
|||
* [[Installation|Installation of Apertium]] |
|||
svn co https://victorio.uit.no/langtech/trunk/gtcore |
|||
* [https://giellalt.github.io/infra/GettingStarted.html Installation of hfst, vislcg3 and the North Saami analyser] |
|||
cd gtcore |
|||
* [https://github.com/apertium/apertium-nob/ Installation of the Norwegian generator] |
|||
./autogen.sh && ./configure && make |
|||
* [https://github.com/apertium/apertium-sme-nob/ Installation of the North Saami - Norwegian translation program|] |
|||
export GTCORE="`pwd`" |
|||
echo "export GTCORE=\"`pwd`\"" >> ~/.bashrc |
|||
cd .. |
|||
svn co https://victorio.uit.no/langtech/trunk/langs/sme |
|||
./autogen.sh && ./configure --enable-apertium --with-hfst --without-xfst --disable-spellers --disable-analysers --disable-generators && make |
|||
cd tools/mt/apertium |
|||
pwd |
|||
The North Saami analyser should be compiled in ''lang-sme'' with the following configuration |
|||
./autogen.sh # thereafter follow the instructions wrt. giella-core |
|||
That last directory (sme/tools/mt/apertium) is the source dir which you use with apertium-sme-nob, so compilation of sme-nob becomes something like |
|||
./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'': |
|||
⚫ | |||
⚫ | |||
make |
make |
||
(or, if you did "make install" in giella-sme and apertium-nob, just "./autogen.sh && make"). |
|||
If you've installed [[Bash completion]] and set the $GTHOME variable as per |
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]] |
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.