Difference between revisions of "Installation of grammar libraries"
(New page to gather this information together) |
(wget -> curl) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TOCD}} |
{{TOCD}} |
||
Some language pairs need code libraries which are not part of Apertium core. You may not know until a compile |
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 |
Fortunately (for those who use Apertium repositories), these rule-builders are available through the [[Install Apertium Core using packaging | private repository packages]]. You can access and install the packages even if your Apertium is a compiled build. Otherwise, you will need to compile. |
||
Line 12: | Line 12: | ||
===== Debian / Ubuntu Derivatives ===== |
===== Debian / Ubuntu Derivatives ===== |
||
<pre> |
<pre> |
||
curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | 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> |
||
==== compiling ==== |
==== compiling ==== |
||
See [[ |
See [[Apertium and Constraint Grammar#Installing_VISL_CG3|installing vislcg3]]. |
||
Note that you have to have [http://site.icu-project.org/ ICU] installed beforehand (available through most GNU/Linux package managers, in Arch Linux as <code>icu</code>, in Debian/Ubuntu as <code>libicu-dev</code>, in Macports as <code>icu</code>). |
Note that you have to have [http://site.icu-project.org/ ICU] installed beforehand (available through most GNU/Linux package managers, in Arch Linux as <code>icu</code>, in Debian/Ubuntu as <code>libicu-dev</code>, in Macports as <code>icu</code>). |
||
Line 29: | Line 37: | ||
===== Debian / Ubuntu Derivatives ===== |
===== Debian / Ubuntu Derivatives ===== |
||
<pre> |
<pre> |
||
curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | sudo bash |
|||
sudo apt-get install hfst |
sudo apt-get install hfst |
||
</pre> |
</pre> |
||
===== Mac OS X ===== |
|||
(For more detail see [[Installation on Mac OS X]]) |
|||
<pre> |
|||
curl -sS https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash |
|||
</pre> |
|||
==== compiling ==== |
==== compiling ==== |
||
See [[HFST#Building and installing HFST]]. |
See [[HFST#Building and installing HFST| building and installing HFST]]. |
||
[[Category:Installation]] |
[[Category:Installation]] |
||
[[Category:Constraint Grammar]] |
|||
[[Category:HFST]] |
|||
[[Category:Documentation in English]] |
[[Category:Documentation in English]] |
Latest revision as of 20:54, 2 April 2021
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')[edit]
e.g. the Macedonian→English, Breton→French, Nynorsk-Bokmål pairs.
packages[edit]
Debian / Ubuntu Derivatives[edit]
curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | sudo bash sudo apt-get install cg3
Mac OS X[edit]
(For more detail see Installation on Mac OS X)
curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash
compiling[edit]
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')[edit]
e.g. the Turkic and Saami pairs.
packages[edit]
Debian / Ubuntu Derivatives[edit]
curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | sudo bash sudo apt-get install hfst
Mac OS X[edit]
(For more detail see Installation on Mac OS X)
curl -sS https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash