Apertium-quality/Installation

From Apertium
Jump to navigation Jump to search

Requirements

You must have:

  • Python >=3.1

Recommended for installation:

  • python3-lxml [1]
  • python3-nltk (Available in my repository; explained later)

All other dependencies are installed automatically.

On Debian or Ubuntu

If you have root access on Debian or Ubuntu, installing apertium-quality and all of its dependencies couldn't be easier! For example, if you're running Debian Squeeze, just run the following commands:

sudo echo "deb http://packages.bbqsrc.net/apt squeeze main" >> /etc/apt/sources.list
curl http://packages.bbqsrc.net/packages.pub | sudo apt-key add -
sudo apt-get update && sudo apt-get install python3-apertium-quality

If you are using another distro such as Ubuntu Natty or Debian Sid, just replace squeeze with the version name: sid, natty, etc.

From source

The source code can be acquired in a few ways.

Git:

git clone git://github.com/bbqsrc/apertium-quality.git

SVN:

svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-quality

Tarball:

wget https://github.com/bbqsrc/apertium-quality/tarball/master

Without root (user prefix)

Installation without root is no more difficult than above:

./autogen.sh --prefix ~/yourprefix

After installation, restart your terminal.