Ruby LinkParser

A high-level interface to the CMU Link Grammar.

This binding wraps the link-grammar shared library provided by the AbiWord project for their grammar-checker, with a few additional patches.

The API documentation has specific details.

For a complete list of local wiki pages, see TitleIndex.

Downloads

Packages include the Ruby LinkParser binding, as well as version 4.3.5 of the link-grammar library and a patch file.

Development Source

You can check out the development source via Subversion:

svn://deveiate.org/Ruby-LinkParser2/trunk

Build Instructions

These instructions assume a UNIX or UNIX-like environment. I've built it on
MacOS X, FreeBSD 7.x, and Ubuntu Linux. I'm not sure how to get this to build
under Windows, as I don't have a Windows license with which to test it.
Suggestions welcomed.
First, you'll need to install the Abiword link-grammar library that comes with
this source (or download it yourself if you wish):
    $ tar -xvzf link-grammar-4.3.9.tar.gz
    $ cd link-grammar-4.3.9
    # If you want the LinkParser::Linkage#current_sublinkage method to work,
    # you must apply the included patch. If you don't care about that method,
    # you can safely skip this:
    $ patch -p1 < ../link-grammar-4.3.9.patch
    $ ./configure; make; sudo make install
    $ cd ..
Now build, test, and install the Ruby library:
    $ rake
    $ sudo rake install
If you've installed the link-grammar library someplace that isn't in your
regular include path, you might have to tell the build system where to look:
    $ rake -- --with-link-grammar-dir=/usr/local
Under MacOS X, unless you've taken extra steps to compile the link-grammar
library as a universal binary, you'll probably also have to limit it to
your machine's architecture:
    $ ARCHFLAGS="-arch i386" rake -- --with-link-grammar-dir=/usr/local
That's it!

Trac

This project is managed using Trac, an excellent Open Source project tracker. For more information, see: