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

This version


Download files

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

Files for ClearWrap, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size ClearWrap-0.2.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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