PersianLG

By Jon Dehdari, Brigham Young University Linguistics Department, 2003-2007

This README is for 'persianlg', a Persian (specifically Farsi) implementation of a Link Grammar (LG) parser grammar.  The LG Parser is a novel approach to parsing sentences, and was developed at Carnegie Melon University, and further enhanced with the AbiWord team.  The parser works by simply linking words together.  Directionality and distance are the constraints given, and are found in the 4.0.dict file.


ABOUT PERSIANLG:

The Persian PersianLG implementation is the first full non-English implementation, to my knowledge.  It works a little differently than the English version, due to the more complex word structure .  Morphological pre-parsing is required, either by using Perstem or the outdated Persian-pckimmo morphology engine.  The LG-Soar framework, developed in the BYU Soar research group, has tied both the LG parser and the PC-Kimmo engine together, to provide seamless integration of morphology and syntax.

For example, an unvoweled text like 'mn midAnm kh tu mi-rui.' (I know that you are going), should go into the LG parser as 'mn mi dAn m kh tu mi ru i.'   See the orthography.txt file for the romanization scheme used.


USAGE:

PersianLG may be used from the command line or from a web server.  A simple sentence may be parsed my running the command:
echo 'dust-hAi mn ktAb rA didnd' | perl perstem.pl --zwnj --tokenize | ./persianlg.sh
which will result in output like:
[...]
    +----------------------------Wi----------------------------+
    |        +-----------------------Spln----------------------+
    |        +-----EZm----+           +-----On-----+----VMP----+
    |        +-NMSp-+     +--M-+      +--PA--+     +-VMT+      |
    |        |      |     |    |      |      |     |    |      |
LEFT-WALL dust.n hA.nms e.ez mn.pn ktAb.n rA.acc di.v d.vmt nd.vmp
[...]

To install PersianLG onto a web server, contact your local system administrator.


LICENSE:

This package is Free Software, licensed under General Public License v.3.  See LICENSE.TXT for details.
