Difference between revisions of "Northern Sámi and Norwegian/Installation"

From Apertium
Jump to navigation Jump to search
m
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
Prerequisites:
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.
 
   
  +
* apertium 3.3 or higher, see [[Minimal installation from SVN]]
First, install the old hfst2 branch:
 
  +
* lttoolbox 3.3 or higher, see [[Minimal installation from SVN]]
<pre>
 
  +
* HFST 3.7.1 or higher, see [[HFST]]
svn co -r617 https://hfst.svn.sourceforge.net/svnroot/hfst/branches/hfst2
 
  +
** foma (from svn, last tested with revision 64), see [[foma]]
cd hfst2
 
  +
* vislcg3 (from svn, last tested with revision 9959), see [[CG]]
autoreconf -i
 
  +
* apertium-nob, https://svn.code.sf.net/p/apertium/svn/languages/apertium-nob
./configure
 
  +
* giella-sme, https://victorio.uit.no/langtech/trunk/langs/sme
make
 
  +
** depends on giella-gtcore, https://victorio.uit.no/langtech/trunk/gtcore
sudo make install
 
</pre>
 
   
  +
To install giella-sme, do:
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
 
make
 
sudo make install
 
</pre>
 
   
  +
svn co https://victorio.uit.no/langtech/trunk/gtcore
Other than that, installation is the same as [[Minimal installation from SVN]] (vislcg3 is required).
 
  +
cd gtcore
  +
./autogen.sh && ./configure && make
  +
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
  +
  +
  +
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
  +
  +
./autogen.sh --with-lang1=$HOME/src/sme/tools/mt/apertium --with-lang2=$HOME/src/apertium-nob
 
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 http://giellatekno.uit.no/doc/infra/GettingStarted.html, 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]]

Revision as of 15:16, 26 September 2016

Prerequisites:

To install giella-sme, do:

svn co https://victorio.uit.no/langtech/trunk/gtcore
cd gtcore
./autogen.sh && ./configure && make
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


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

./autogen.sh --with-lang1=$HOME/src/sme/tools/mt/apertium --with-lang2=$HOME/src/apertium-nob
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 http://giellatekno.uit.no/doc/infra/GettingStarted.html, you can just do "./autogen.sh -TAB" and it'll fill out the tools/mt/apertium path for you.