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.
- Tar+Bzip2: Ruby-LinkParser-20080526.4.tar.bz2 (898.57 k)
- Tar+Gzip: Ruby-LinkParser-20080526.4.tar.gz (887.73 k)
- Zip: Ruby-LinkParser-20080526.4.zip (906.10 k)
Development Source
You can check out the development source via Subversion:
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:
- TracGuide -- Built-in Documentation
- The Trac project -- Trac Open Source Project
- Trac FAQ -- Frequently Asked Questions
- TracSupport -- Trac Support
