Skip to main content

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 hashes
Filename, size visualise-spacy-pattern-0.0.3.tar.gz (2.7 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