The latest version of MaltParser is available from the MaltParser download page.
Unpack the MaltParser distribution maltparser-1.9.2.zip or maltparser-1.9.2.tar.gz by running one of the following commands:
prompt> tar -zxvf maltparser-1.9.2.tar.gz
prompt> gunzip maltparser-1.9.2.tar.gz prompt> tar -xvf maltparser-1.9.2.tar
prompt> unzip maltparser-1.9.2.zip
The distribution of MaltParser contains the following files and directories:
LICENSE | License information |
NOTICE | Acknowledgement |
README | Readme file |
appdata | Application data |
build.properties | Build properties |
build.xml | Ant build script |
docs | User guide and MaltParser source documentation |
examples | Examples of treebank data, option files, feature specification files and examples that shows how to use MaltParser from other applications |
lib | Jar-files used by MaltParser |
malt.jar | MaltParser executable jar-file |
src | Java source of MaltParser |
After installing MaltParser, you can run it to verify that it is working properly on your system. To be able to run MaltParser you need Java Runtime Environment (JRE). You need version JRE 1.7 (Java 7) or later version. If you don't have JRE installed on your system, download and install the latest version of Java Runtime Environment.
To run MaltParser type the following at the command line prompt (it is important that you are in the malt-1.9.2 directory):
prompt> java -jar maltparser-1.9.2.jar
If MaltParser displays something like the message below, the distribution has been installed successfully.
----------------------------------------------------------------------------- MaltParser 1.9.2 ----------------------------------------------------------------------------- MALT (Models and Algorithms for Language Technology) Group Vaxjo University and Uppsala University Sweden ----------------------------------------------------------------------------- Usage: java -jar maltparser-1.9.2.jar -f <path to option file> <options> java -jar maltparser-1.9.2.jar -h for more help and options help ( -h) : Show options ----------------------------------------------------------------------------- option_file ( -f) : Path to option file ----------------------------------------------------------------------------- verbosity *( -v) : Verbosity level debug - Logging of debugging messages error - Logging of error events fatal - Logging of very severe error events info - Logging of informational messages off - Logging turned off warn - Logging of harmful situations ----------------------------------------------------------------------------- Documentation: docs/index.html
MaltParser is distributed both in binary form and with all source code and documentation. If you only want to use MaltParser as a parser you only need to install the distribution (follow the installation guidelines above), but if you need to build the system you should follow these guidelines. To be able to build MaltParser you need Java SE Development Kit (JDK) 6 or later version of JDK and Apache Ant 1.7.0. If you don't have these tools please download and install them by following the instructions on their web sites.
To build the MaltParser distribution:
prompt> cd <path to maltparser-1.9.2 directory> prompt> ant dist
<path to maltparser-1.9.2 directory> should be replaced by the actual path to the directory where malt-1.9.2 is installed.