Visualise spacy dependency patterns
Project description
Visualise spacy pattern
Installation
pip install visualise-spacy-pattern
Usage
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:
f.write(png)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for visualise-spacy-pattern-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 685c34fd7fc9c53f3f818242c999646b3c41d255c228e822eb0bf65944cb8f4e |
|
MD5 | 1f1ca1d88e3caba97c400417b40c1fc4 |
|
BLAKE2b-256 | e4d365e08ed994581083924a6a64c3e0fcbcc6c3a4a4501a6660971f1ed9bc3f |
Close
Hashes for visualise_spacy_pattern-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c80afbcbf688ee2a85bc4feabd77e392b3af7d0ae94ef8817c2c3aea650743 |
|
MD5 | 0e9faa2c0f18fef454978af8f085a509 |
|
BLAKE2b-256 | 67759031d44f408df09e70fd08d6a72258c5aec122ff5c9d1c3782c73faba470 |