Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

pylinkgrammar is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.13Never BuiltWhy not?
0.2.11 Failed View build log
0.2.7 Failed View build log
0.2.2 Failed View build log
0.2.0 Failed View build log
0.1.20 Failed View build log
0.1.19 Failed View build log
0.1.18 Failed View build log
Windows (64-bit)
0.2.13Never BuiltWhy not?
0.2.11 Failed View build log
0.2.7 Failed View build log
0.2.2 Failed View build log
0.2.0 Failed View build log
0.1.20 Failed View build log
0.1.19 Failed View build log
0.1.18 Failed View build log
Mac OS X (10.5+)
0.2.13Never BuiltWhy not?
0.2.11 Failed View build log
0.2.7 Failed View build log
0.2.2 Failed View build log
0.2.0 Failed View build log
0.1.20 Failed View build log
0.1.19 Failed View build log
0.1.18 Failed View build log
Linux (32-bit)
0.2.13 Failed View build log
0.2.12 Failed View build log
0.2.11 Failed View build log
0.2.7 Failed View build log
0.2.2 Failed View build log
0.2.0 Failed View build log
0.1.20 Failed View build log
0.1.19 Failed View build log
0.1.18 Failed View build log
Linux (64-bit)
0.2.13 Failed View build log
0.2.12 Failed View build log
0.2.11 Failed View build log
0.2.7 Failed View build log
0.2.2 Failed View build log
0.2.0 Failed View build log
0.1.20 Failed View build log
0.1.19 Failed View build log
0.1.18 Failed View build log
 
Links
Author
Lastest release
version 0.2.13 on Nov 23rd, 2012

Description

LinkGrammar is a sentence parsing system developed at Carnegie Mellon University by John Lafferty, Daniel Sleator, Davy Temperley and others

LinkGrammar is written in C. This package contains a Pythonic interface to the C library.

Sourcecode is hosted on BitBucket: https://www.bitbucket.org/metametrics/pylinkgrammar/

Install

You'll need to build and install linkgrammar before running setup.py. Verified to work with linkgrammar 4.7.6 and above.

On Ubuntu systems you install the dependencies like so:

sudo apt-add-repository ppa:python-pylinkgrammar/getsome
sudo apt-get install liblink-grammar4

Then to install pylinkgrammar:

pip install pylinkgrammar

How to use

Parsing simple sentences:

>>> from pylinkgrammar.linkgrammar import Parser
>>> p = Parser()
>>> linkages = p.parse_sent("This is a simple sentence.")
>>> len(linkages)
2
>>> print linkages[0].diagram

        +-------------------Xp------------------+
        |              +--------Ost-------+     |
        |              |  +-------Ds------+     |
        +---Wd---+-Ss*b+  |     +----A----+     |
        |        |     |  |     |         |     |
    LEFT-WALL this.p is.v a simple.a sentence.n .

Subscribe to package updates

Last updated Nov 23rd, 2012

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.