Skip to main content

README

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 .

Metadata

Release files for pylinkgrammar 0.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylinkgrammar 0.2.14
File Size Uploaded Provenance Actions
pylinkgrammar-0.2.14.tar.gz 14.3 kB Without provenance Details for pylinkgrammar-0.2.14.tar.gz

Release files / pylinkgrammar-0.2.14.tar.gz

Download URL pylinkgrammar-0.2.14.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a8db0e9bbc036b7fa4cfac0771fa92d1eeff2f5696804a47820e348f6e860a08
BLAKE2b-256 checksum
How to use checksums
306decf22d016279bda0887f48993646a63c5219085f25fd0c8d88a7358486bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pylinkgrammar 0.2.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page