jPTDP wrapper for spaCy
Project description
spaCy-jPTDP
Basic Usage
>>> import spacy_jptdp
>>> nlp=spacy_jptdp.load("en_ewt")
>>> doc=nlp("We are finished.")
>>> for t in doc:
... print("\t".join([str(t.i+1),t.orth_,"_",t.pos_,"_","_",str(0 if t.head==t else t.head.i+1),t.dep_,"_","_" if t.whitespace_ else "SpaceAfter=No"]))
...
1 We _ PRON _ _ 3 nsubj _ _
2 are _ AUX _ _ 3 cop _ _
3 finished _ ADJ _ _ 0 ROOT _ SpaceAfter=No
4 . _ PUNCT _ _ 3 punct _ SpaceAfter=No
>>> import deplacy
>>> deplacy.render(doc)
We PRON <══╗ nsubj
are AUX <╗ ║ cop
finished ADJ ═╝═╝═╗ ROOT
. PUNCT <════╝ punct
spacy_jptdp.load(treebank)
loads spaCy Language pipeline for jPTDP. Available treebanks are HERE.
Installation
pip install spacy_jptdp
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for spacy_jptdp-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c6290ea650c0b3a3010c04343bbd6fa08e8911a88fa17545e4d2d62316c4778 |
|
MD5 | f5ca2ba01e3a6a96003fe2722938a13c |
|
BLAKE2b-256 | c961357aee3e03c4dd728285cb05e7aa226be2f9721259dff6e0e2ff59861ce4 |