Difference between revisions of "Installation of grammar libraries"
TommiPirinen (talk | contribs) (+mac) |
|||
Line 14: | Line 14: | ||
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash |
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash |
||
sudo apt-get install cg3 |
sudo apt-get install cg3 |
||
</pre> |
|||
===== Mac OS X ===== |
|||
(For more detail see [[Installation on Mac OS X]]) |
|||
<pre> |
|||
curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash |
|||
</pre> |
</pre> |
||
Line 33: | Line 41: | ||
</pre> |
</pre> |
||
===== Mac OS X ===== |
|||
(For more detail see [[Installation on Mac OS X]]) |
|||
<pre> |
|||
curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash |
|||
</pre> |
|||
==== compiling ==== |
==== compiling ==== |
Revision as of 15:26, 2 October 2020
Some language pairs need code libraries which are not part of Apertium core. You may not know until a compile sighs, 'fail, fail, fail'. You can tell if a package requires CG if it has an .rlx file, and HFST if it has a .lexc file.
Fortunately (for those who use Apertium repositories), these rule-builders are available through the private repository packages. You can access and install the packages even if your Apertium is a compiled build. Otherwise, you will need to compile.
VISL CG3 ('vislcg3' / 'cg-proc' / 'cg-comp')
e.g. the Macedonian→English, Breton→French, Nynorsk-Bokmål pairs.
packages
Debian / Ubuntu Derivatives
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash sudo apt-get install cg3
Mac OS X
(For more detail see Installation on Mac OS X)
curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash
compiling
See installing vislcg3.
Note that you have to have ICU installed beforehand (available through most GNU/Linux package managers, in Arch Linux as icu
, in Debian/Ubuntu as libicu-dev
, in Macports as icu
).
HFST ('hfst-proc' / 'hfst-lexc' / 'hfst-twolc')
e.g. the Turkic and Saami pairs.
packages
Debian / Ubuntu Derivatives
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash sudo apt-get install hfst
Mac OS X
(For more detail see Installation on Mac OS X)
curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash