Skip to main content

Wrapper for ClearParser

Project description

Wrappers for the NICTA fork of ClearParser dependency parser allowing customisation of the parsing process. It was developed primarily for the StructuRX prescription interpretation tool.

Certain features also work with the regular unforked ClearParser but this is very much untested.

To use this code an installation of ClearParser must be present on your system.

Usage example, if ClearParser is installed to /usr/local/clearparser:

>>> from clearparser import ClearWrapper
>>> wrapper = ClearWrapper('parsing-config.xml', 'pos-tagging-config.xml',
... 'dep-model.jar', '/usr/local/clearparser')
>>> sentences = ['I ran']
>>> parsed = wrapper.parse_in_bulk(sentences)

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

ClearWrap-0.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page