Skip to main content

Python bindings for Link Grammar system

Project description

Description
===========
LinkGrammar is a sentence parsing system developed at Carnegie Melon 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.

Install
=======
You'll need to build and install linkgrammar before running setup.py.

On Debian and ubuntu systems you:::
sudo apt-get install link-grammar

Then to install pylinkgrammar:::
pip install pylinkgrammar

How to use
==========
Parsing simple sentences:::
>>> from 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 .

Project details


Release history Release notifications

History Node

0.2.14

History Node

0.2.13

History Node

0.2.12

History Node

0.2.11

History Node

0.2.10

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.0

History Node

0.1.21

History Node

0.1.20

History Node

0.1.19

History Node

0.1.18

History Node

0.1.17

History Node

0.1.16

History Node

0.1.15

History Node

0.1.14

History Node

0.1.13

History Node

0.1.12

History Node

0.1.11

History Node

0.1.10

This version
History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pylinkgrammar-0.1.9.tar.gz (11.8 kB) Copy SHA256 hash SHA256 Source None Jan 12, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page