To build the current version of MALLET and to install its required dependencies in Ubuntu 17.04, first open a terminal window and navigate to the directory in which you would like to build MALLET, then run the following commands from terminal:
sudo apt-get update; sudo apt-get upgrade -y
sudo apt-get install ant mercurial openjdk-8-jdk -y
hg clone http://hg-iesl.cs.umass.edu/hg/mallet
cd mallet
ant
sudo apt-get install ant mercurial openjdk-8-jdk -y
hg clone http://hg-iesl.cs.umass.edu/hg/mallet
cd mallet
ant
For more information on MALLET, check out Shawn Graham and Ian Milligan’s thoughtful review of the package in the Journal of Digital Humanities.