Skip to main content

jPTDP wrapper for spaCy

Project description

Current PyPI packages

spaCy-jPTDP

jPTDP wrapper for spaCy

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

If you're not sure about the file name format, learn more about wheel file names.

spacy_jptdp-0.7.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file spacy_jptdp-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: spacy_jptdp-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for spacy_jptdp-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7104606dd8a653a33fc55561518817f50e641112e2701cb61b3ae2ead5c0b9c
MD5 828ad1f1d44b8f7a5ee8becd316a4916
BLAKE2b-256 f09d155f68464ca42387ce83b96d40f880070384c313f0d9ee7a4ed7b176254b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page