Skip to main content

mrg_utils.py Created by Robert Elwell University of Texas at Austin Department of Linguistics http://comp.ling.utexas.edu/relwell

Licensed under GPL

This is a set of python classes for processing Penn-Treebank-style combined parses, also known as the .mrg format in PTB release two. Files should be fairly self-explanatory.

Canonical node is mrg_utils.py, but mrg_document.py and node.py may be more informative for someone starting out.

This could save you up to a month of writing and debugging, and was designed to be scalable.

You can use this to extract features, easily run statistics, and navigate syntactic trees.

This code is built from an API originally designed to interface with Stanford Parser-style dependency parse outputs (Marneffe et al, 2006), Penn Discourse Treebank data, and more. Code or guidance will be furnished upon request by emailing me at robert.elwell@gmail.com.

Good luck, and enjoy.

Metadata

Release files for mrg_utils 0.0.1

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

Source distribution (sdist)

Source distribution for mrg_utils 0.0.1
File Size Uploaded
mrg_utils-0.0.1.tar.gz 8.9 kB Details

Release files / mrg_utils-0.0.1.tar.gz

Download URL mrg_utils-0.0.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a85cadfb734312d1f61993132da2145f6e56b28022245fa8d235bfd814151bb7
BLAKE2b-256 checksum
How to use checksums
7f6be84f1f4d519477e9b69f82ab8a53003d45d67e1536a797dcf4cbc472bc1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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