Sunday, May 23, 2010

Maltparser: A parser to build parser: Introduction & Installation

While a traditional parser-generator constructs a parser given a grammar, a data-driven parser-generator constructs a parser given a treebank. MaltParser is a system for data-driven dependency parsing, which can be used to induce a parsing model from treebank data and to parse new data using an induced model.
MaltParser implements seven deterministic parsing algorithms:
  • Nivre arc-eager
  • Nivre arc-standard
  • Covington non-projective
  • Covington projective
  • Stack projective
  • Stack swap-eager
  • Stack swap-lazy
 You can choose whichever algorithm you intend to apply from command promt using Options(see further)

MaltParser currently includes two machine learning package :
  • LIBSVM - A Library for Support Vector Machine.
  • LIBLINEAR -- A Library for Large Linear Classification

    The latest version of MaltParser is available from the MaltParser download page
I discuss installation of maltparser on Ubutu Platform. I guess it works on all other platform , if you face any problem, write to me.
Download the Zip File  : malt 1.3.1 
Check if there are newer versions available.
Download the zip file to the directory where you want to extract it or copy it to the directory.
open your command prompt and set the path to the directory . Now type
prompt> unzip malt-1.3.1.zip

To run MaltParser type the following at the command line prompt (it is important that you are in the malt-1.3.1 directory):

prompt> java -jar malt.jar
If MaltParser displays something like the message below, the distribution has been installed successfully.
-----------------------------------------------------------------------------
                          MaltParser 1.3.1
-----------------------------------------------------------------------------
         MALT (Models and Algorithms for Language Technology) Group
             Vaxjo University and Uppsala University
                             Sweden
-----------------------------------------------------------------------------

Usage:
   java -jar malt.jar -f  
   java -jar malt.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


To be able to build MaltParser you need Java SE Development Kit (JDK) 6 and Apache Ant 1.7.0. If you dont have these tools please download and install them by following the instructions on their web sites.

To build the MaltParser distribution:
prompt> cd 
prompt> ant dist
should be replaced by the actual path to the directory where malt-1.3.1 is installed.

No comments:

Post a Comment