Using the tools on your own system
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, with
udpipe(not needed Spring 2021)
- Miscellaneous tools (from repo)
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 using the nightly script.
- If you run Windows 10, set up WSL and then [[set up the package manager to use Apertium's repos using the nightly script.
- 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 Debian/Ubuntu (including under Windows WSL)
Set up the Apertium nightly script.
Then install all development packages
$ sudo apt-get -f install apertium-all-dev
That should install all the core tools on your system!
Apertium installation on Mac using 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.
Follow these instructions.
morph-test to work, you'll need PyYAML.
On Debian/Ubuntu (including under Windows with WSL):
$ sudo apt-get install python3-yaml
On macOS using homebrew and pretty much any other system where you don't mind bypassing your package manager:
$ pip3 install PyYAML
Then clone the tools repo, being sure to use the
--recurse-submodules option (since the repo includes two subrepos):
$ git clone --recurse-submodules email@example.com:Ling073-sp21/tools.git
And then run
sudo make to install the tools to either your local
~/bin directory or the system
If the latter, you need to be a system administrator; if the former, make sure you have your
~/bin in your
$PATH. How to do this will depend on your shell; in bash, edit your
~/.bash_profile file, and make sure
$HOME/bin is in the
PATH= list, separated from other entries by