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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7669c5adf2ef38dd217b1767c451d3539d6ef99a46b215c370a941fde6b0f1f |
|
MD5 | f884e035ffc770e038ffc8ab6b2a57e0 |
|
BLAKE2b-256 | c2d57cfdd988facc73dbfd93e773dc4d2242fc8ac3f5cf35329a43eac8e294c0 |
Close
Hashes for visualise_spacy_pattern-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4579df462868b6b71f4d6502681a9e3cf173c6e379803e875b67e275af74a3 |
|
MD5 | 4b7619e136762342ce533e95cc7358f7 |
|
BLAKE2b-256 | ba66ba3cbf7a3c6b37b47062267a88ddc80392af41fec012bb791e29bba62121 |