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 the 'mkrf' library to build the C extension if you don't
already have it installed. If you use Rubygems, it should be as simple as:
$ sudo gem install mkrf
Once you have that installed, patch and 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 skip the next step:
$ 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
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
