| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <title>MaltParser - Installation</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <meta name="robots" content="index,follow" /> |
| <meta name="revisit-after" content="7 days" /> |
| <meta name="keywords" content="MaltParser, install, java" /> |
| <meta name="description" content="How to install MaltParser on your system. You need Java 1.6 or later version" /> |
| <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> |
| <link rel="stylesheet" type="text/css" href="print.css" media="print" /> |
| <link rel="canonical" href="http://www.maltparser.org/install.html" /> |
| <script type="text/javascript"> |
| var _gaq = _gaq || []; |
| _gaq.push(['_setAccount', 'UA-22905106-2']); |
| _gaq.push(['_trackPageview']); |
| (function() { |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| })(); |
| </script> |
| </head> |
| <body> |
| <h1>MaltParser</h1> |
| <div id="navtop">Modified: February 18 2018</div> |
| <div id="leftcol"> |
| <div id="navcol"> |
| <ul><li class="none"><a href="/" accesskey="1">Home</a></li></ul> |
| <h5>Get MaltParser</h5> |
| <ul> |
| <li class="none"><a href="download.html">Download</a></li> |
| <li class="none"><a href="changes.html" accesskey="2">Changes</a></li> |
| <li class="none"><a href="license.html" accesskey="8">License</a></li> |
| </ul> |
| <h5>Documentation</h5> |
| <ul> |
| <li class="none"><a href="intro.html">Introduction</a></li> |
| <li class="none"><a href="install.html">Installing MaltParser</a></li> |
| <li class="none"><a href="userguide.html" accesskey="6">User guide</a></li> |
| <li class="none"><a href="options.html">Options (short version)</a></li> |
| <li class="none"><a href="optiondesc.html">Options (long version)</a></li> |
| <li class="none"><a href="api/index.html">JavaDoc</a></li> |
| </ul> |
| <h5>Resources</h5> |
| <ul> |
| <li class="none"><a href="mco/mco.html">Pre-trained models</a></li> |
| <li class="none"><a href="publications.html">Publications</a></li> |
| <li class="none"><a href="conll.html">CoNLL Shared Task</a></li> |
| <li class="none"><a href="malteval.html">MaltEval</a></li> |
| </ul> |
| <h5>Contact</h5> |
| <ul><li class="none"><a href="contact.html" accesskey="7">Contact</a></li></ul> |
| </div> |
| </div> |
|
|
|
|
| <div id="bodycol"> |
| <div class="section"> |
| <h2 id="install">Installing MaltParser</h2> |
| <p>The latest version of MaltParser is available from the |
| MaltParser <a href="download.html">download page</a>.</p> |
|
|
| <p>Unpack the MaltParser distribution <strong>maltparser-1.9.2.zip</strong> or <strong>maltparser-1.9.2.tar.gz</strong> by |
| running one of the following commands:</p> |
| <h3>Alternative 1</h3> |
| <pre> |
| prompt> tar -zxvf maltparser-1.9.2.tar.gz |
| </pre> |
|
|
| <h3>Alternative 2</h3> |
| <pre> |
| prompt> gunzip maltparser-1.9.2.tar.gz |
| prompt> tar -xvf maltparser-1.9.2.tar |
| </pre> |
|
|
| <h3>Alternative 3</h3> |
| <pre> |
| prompt> unzip maltparser-1.9.2.zip |
| </pre> |
|
|
| <h2 id="distribution">Distribution</h2> |
| <p>The distribution of MaltParser contains the following files and directories:</p> |
| <table> |
| <tr><td>LICENSE</td><td>License information</td></tr> |
| <tr><td>NOTICE</td><td>Acknowledgement</td></tr> |
| <tr><td>README</td><td>Readme file</td></tr> |
| <tr><td>appdata</td><td>Application data</td></tr> |
| <tr><td>build.properties</td><td>Build properties</td></tr> |
| <tr><td>build.xml</td><td>Ant build script</td></tr> |
| <tr><td>docs</td><td>User guide and MaltParser source documentation</td></tr> |
| <tr><td>examples</td><td>Examples of treebank data, option files, feature specification files and examples that shows how to use MaltParser from other applications</td></tr> |
| <tr><td>lib</td><td>Jar-files used by MaltParser</td></tr> |
| <tr><td>malt.jar</td><td>MaltParser executable jar-file</td></tr> |
| <tr><td>src</td><td>Java source of MaltParser</td></tr> |
| </table> |
|
|
| <h2 id="test">Testing your installation</h2> |
| <p>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 |
| <strong>Java Runtime Environment (JRE)</strong>. You need version JRE 1.7 (Java 7) or later version. If you don't have <strong>JRE</strong> installed on |
| your system, download and install the latest version of <a href="http://java.sun.com/" target="_blank">Java Runtime Environment</a>.</p> |
| <p>To run MaltParser type the following at the command line prompt (it is important that you are in the <strong>malt-1.9.2 directory</strong>):</p> |
| <pre> |
| prompt> java -jar maltparser-1.9.2.jar |
| </pre> |
| <p>If MaltParser displays something like the message below, the distribution has been installed successfully.</p> |
| <pre> |
| ----------------------------------------------------------------------------- |
| 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 |
| </pre> |
|
|
| <h2 id="build">Building MaltParser</h2> |
| <p>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 <a href="http://java.sun.com/" target="_blank">Java SE Development Kit (JDK) 6</a> or later version of JDK |
| and <a href="http://ant.apache.org/" target="_blank">Apache Ant 1.7.0</a>. If you don't have these tools please download and install them by following |
| the instructions on their web sites.</p> |
|
|
| <p>To build the MaltParser distribution:</p> |
| <pre> |
| prompt> cd <path to maltparser-1.9.2 directory> |
| prompt> ant dist |
| </pre> |
| <p><em><path to maltparser-1.9.2 directory></em> should be replaced by the actual path to the directory where malt-1.9.2 is installed.</p> |
|
|
| <p id="footer">Copyright © Johan Hall, Jens Nilsson and Joakim Nivre</p> |
| </div> |
| </div> |
| </body> |
| </html> |