[](https://pypi.org/project/spacy-jptdp/)
# spaCy-jPTDP
[jPTDP](https://github.com/datquocnguyen/jPTDP) wrapper for [spaCy](https://spacy.io)
## Basic Usage
```py
>>> 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](https://github.com/KoichiYasuoka/spaCy-jPTDP/tree/master/treebanks).
## Installation
```sh
pip install 'setuptools<57' 'numpy<2'
pip install dynet --no-build-isolation
pip install spacy_jptdp
```
Raw data
{
"_id": null,
"home_page": "https://github.com/KoichiYasuoka/spaCy-jPTDP",
"name": "spacy-jptdp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "NLP jPTDP spaCy",
"author": "Koichi Yasuoka",
"author_email": "yasuoka@kanji.zinbun.kyoto-u.ac.jp",
"download_url": null,
"platform": null,
"description": "[](https://pypi.org/project/spacy-jptdp/)\n\n# spaCy-jPTDP\n\n[jPTDP](https://github.com/datquocnguyen/jPTDP) wrapper for [spaCy](https://spacy.io)\n\n## Basic Usage\n\n```py\n>>> import spacy_jptdp\n>>> nlp=spacy_jptdp.load(\"en_ewt\")\n>>> doc=nlp(\"We are finished.\")\n>>> for t in doc:\n... 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\"]))\n...\n1\tWe\t_\tPRON\t_\t_\t3\tnsubj\t_\t_\n2\tare\t_\tAUX\t_\t_\t3\tcop\t_\t_\n3\tfinished\t_\tADJ\t_\t_\t0\tROOT\t_\tSpaceAfter=No\n4\t.\t_\tPUNCT\t_\t_\t3\tpunct\t_\tSpaceAfter=No\n>>> import deplacy\n>>> deplacy.render(doc)\nWe PRON <\u2550\u2550\u2557 nsubj\nare AUX <\u2557 \u2551 cop\nfinished ADJ \u2550\u255d\u2550\u255d\u2550\u2557 ROOT\n. PUNCT <\u2550\u2550\u2550\u2550\u255d punct\n```\n\n`spacy_jptdp.load(treebank)` loads spaCy Language pipeline for jPTDP. Available treebanks are [HERE](https://github.com/KoichiYasuoka/spaCy-jPTDP/tree/master/treebanks).\n\n## Installation\n\n```sh\npip install 'setuptools<57' 'numpy<2'\npip install dynet --no-build-isolation\npip install spacy_jptdp\n```\n\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "jPTDP wrapper for spaCy",
"version": "0.7.3",
"project_urls": {
"Homepage": "https://github.com/KoichiYasuoka/spaCy-jPTDP",
"Source": "https://github.com/KoichiYasuoka/spaCy-jPTDP",
"Tracker": "https://github.com/KoichiYasuoka/spaCy-jPTDP/issues",
"jPTDP": "https://github.com/datquocnguyen/jPTDP"
},
"split_keywords": [
"nlp",
"jptdp",
"spacy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "45e9119b12116ec51b52ce5ffc31dd9196ad80981eb98a99f15ebcd7912850b9",
"md5": "f1463ad10f18cc4d4b05c8c97940ec25",
"sha256": "510eacdb79cbd09ebad2f30c6221cd5dd0056e478f6023132dbfeda984845de6"
},
"downloads": -1,
"filename": "spacy_jptdp-0.7.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f1463ad10f18cc4d4b05c8c97940ec25",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 26475,
"upload_time": "2025-07-19T22:22:04",
"upload_time_iso_8601": "2025-07-19T22:22:04.714156Z",
"url": "https://files.pythonhosted.org/packages/45/e9/119b12116ec51b52ce5ffc31dd9196ad80981eb98a99f15ebcd7912850b9/spacy_jptdp-0.7.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-19 22:22:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KoichiYasuoka",
"github_project": "spaCy-jPTDP",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "spacy-jptdp"
}