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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92bc1d675832df98c0b8f853c37401cc87790798e6f899e209ed607d14e5ab78 |
|
MD5 | 3355fdc0d604e31e8f67117243d3bbb0 |
|
BLAKE2b-256 | 756d4625bd928ee1050971aed179e7c4eb9d26c99dceb809b2c91d5185a8cdc3 |
Close
Hashes for visualise_spacy_pattern-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520453526a12e85f5fbdc677308a6f046345e1bef249b7c8b72a27e638e0a3ee |
|
MD5 | c474094d03e9ac6762cc171533578cbb |
|
BLAKE2b-256 | cb8142f635ee9f63fc0f36354ec2b341d373037e5bf080a459d2809ffdcf24ce |