Difference between revisions of "Using the tools on your own system"
(→Installing core tools) |
|||
| Line 35: | Line 35: | ||
$ brew install gperftools help2man pcre icu4c perl518 gawk autoconf automake pkg-config cmake wget gcc | $ brew install gperftools help2man pcre icu4c perl518 gawk autoconf automake pkg-config cmake wget gcc | ||
| − | This will take a couple minutes. | + | This will take a couple minutes. |
| − | |||
| − | |||
==== Install apertium core tools and HFST ==== | ==== Install apertium core tools and HFST ==== | ||
| Line 50: | Line 48: | ||
== Misc tools == | == Misc tools == | ||
| − | + | First, for <code>morph-test</code> to work, you'll need PyYAML. | |
| + | |||
| + | # on macOS using homebrew: | ||
| + | $ pip3 install PyYAML | ||
| + | # on Debian/Ubuntu (including under Windows with WSL): | ||
| + | $ sudo apt-get install python3-yaml | ||
| + | |||
| + | Then clone the tools repo: | ||
| + | |||
| + | $ git clone --recurse-submodules git@github.swarthmore.edu:Ling073-sp21/tools.git | ||
| + | |||
| + | And then run <code>make</code> or <code>sudo make</code>. | ||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[Category:Tools]] | [[Category:Tools]] | ||
Revision as of 21:35, 24 January 2021
It's possible to use the tools we make use of in class on your own system.
The following is the complete list of tools you'll need:
- The core tools:
- Apertium, with
lttoolboxand other dependencies -
apertium-lex-tools,apertium-separable,apertium-recursive,apertium-anaphora - HFST
- CG-3
-
lexd
- Apertium, with
-
udpipe(not needed Spring 2021) - Miscellaneous tools (from repo)
Contents
Installing core tools
There are three main methods to install the core tools:
- If you run Linux, set up your package manager to use Apertium's repos.
- If you run Windows 10, set up WSL and then [[set up the package manager to use Apertium's repos.
- If you run macOS, use homebrew to install the tools.
Alternatively, you can install VirtualBox and use a Linux virtual machine with Apertium tools installed.
Apertium installation on Mac using homebrew
Install homebrew
Homebrew is a package manager for Mac. To install it, open a terminal run the following:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This will take several minutes.
Note that you'll probably need the XCode developer tools from Apple to install homebrew. If you don't have them installed, Homebrew may direct you to install them—perhaps automatically—but it may not.
Install dependencies from homebrew
$ brew install gperftools help2man pcre icu4c perl518 gawk autoconf automake pkg-config cmake wget gcc
This will take a couple minutes.
Install apertium core tools and HFST
$ wget https://apertium.projectjj.com/osx/install-nightly.sh -O - | bash
This will take a minute.
UDpipe
Follow these instructions.
Misc tools
First, for morph-test to work, you'll need PyYAML.
# on macOS using homebrew: $ pip3 install PyYAML # on Debian/Ubuntu (including under Windows with WSL): $ sudo apt-get install python3-yaml
Then clone the tools repo:
$ git clone --recurse-submodules git@github.swarthmore.edu:Ling073-sp21/tools.git
And then run make or sudo make.