File size: 7,251 Bytes
6f3ebfa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!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 &lt;path to option file&gt; &lt;options&gt;
   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 &lt;path to maltparser-1.9.2 directory&gt;
prompt> ant dist
</pre>
<p><em>&lt;path to maltparser-1.9.2 directory&gt;</em> should be replaced by the actual path to the directory where malt-1.9.2 is installed.</p>

<p id="footer">Copyright &copy; Johan Hall, Jens Nilsson and Joakim Nivre</p>
</div>
</div>
</body>
</html>