Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Visualise spacy dependency patterns

Project description

Visualise spacy pattern


pip install visualise-spacy-pattern


import visualise_spacy_pattern

# Load the example dependency pattern
pattern_file = 'examples/pattern_1.json'
with open(pattern_file) as f:
    pattern = json.load(f)

graph = visualise_spacy_pattern.to_pydot(pattern)
png = graph.create_png()
graph_file = 'examples/graph_1.png'.format()
with open(graph_file, 'wb') as f:

Project details

Download files

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

Files for visualise-spacy-pattern, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size visualise_spacy_pattern-0.0.3-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size visualise-spacy-pattern-0.0.3.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page