deplacy


Namedeplacy JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/KoichiYasuoka/deplacy
SummaryCUI-based Tree Visualizer for Universal Dependencies and Immediate Catena Analysis
upload_time2024-03-30 14:36:45
maintainerNone
docs_urlNone
authorKoichi Yasuoka
requires_python>=3.6
licenseMIT
keywords spacy stanza nlp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Current PyPI packages](https://badge.fury.io/py/deplacy.svg)](https://pypi.org/project/deplacy/)

# deplacy

Simple dependency visualizer for [spaCy](https://spacy.io/), [UniDic2UD](https://pypi.org/project/unidic2ud), [Stanza](https://stanfordnlp.github.io/stanza), [NLP-Cube](https://github.com/Adobe/NLP-Cube), [Trankit](https://github.com/nlp-uoregon/trankit), etc.

## Usage with spaCy

```py
>>> import spacy
>>> nlp=spacy.load("en_core_web_sm")
>>> doc=nlp("I saw a horse yesterday which had no name.")
>>> import deplacy
>>> deplacy.render(doc)
I         PRON  <══════════════╗   nsubj
saw       VERB  ═══════════╗═╗═╝═╗ ROOT
a         DET   <════════╗ ║ ║   ║ det
horse     NOUN  ═══════╗═╝<╝ ║   ║ dobj
yesterday NOUN  <══════║═════╝   ║ npadvmod
which     DET   <════╗ ║         ║ nsubj
had       AUX   ═══╗═╝<╝         ║ relcl
no        DET   <╗ ║             ║ det
name      NOUN  ═╝<╝             ║ dobj
.         PUNCT <════════════════╝ punct
```

`deplacy.render(doc,BoxDrawingWidth=1,EnableCR=False,WordRight=False,CatenaAnalysis=True,file=None,Japanese=False)` renders `doc` on a terminal. For old terminals, whose Box Drawing characters are "fullwidth", `BoxDrawingWidth=2` nicely works. For several languages with "proportional" characters, `EnableCR=True` or `WordRight=True` may work well. `CatenaAnalysis=False` disables Immediate Catena Analysis.

`deplacy.serve(doc,port=5000,RtoL=False)` invokes a simple web-server to visualize `doc` with SVG. Try to connect `http://127.0.0.1:5000` with your local browser. For Google Colaboratory, `port=None` visualizes `doc` directly on the notebook.

`deplacy.dot(doc,RtoL=False)` returns [raw DOT](https://graphviz.readthedocs.io/en/stable/manual.html#using-raw-dot) string for `graphviz.Source`.

## Other usages

* [Afrikaans](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/af.md)
* [アイヌイタㇰ](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ain.md)
* [العربية](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ar.md)
* [Беларуская](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/be.md)
* [Български](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/bg.md)
* [Català](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ca.md)
* [ⲙⲉⲧⲣⲉⲙⲛⲭⲏⲙⲓ](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cop.md)
* [Čeština](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cs.md)
* [Cymraeg](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cy.md)
* [Dansk](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/da.md)
* [Deutsch](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/de.md)
* [Ελληνικά](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/el.md)
* [English](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/en.md)
* [Español](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/es.md)
* [Eesti](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/et.md)
* [Euskara](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/eu.md)
* [فارسی](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fa.md)
* [Suomi](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fi.md)
* [Føroyskt](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fo.md)
* [Français](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fr.md)
* [Gaeilge](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ga.md)
* [Gàidhlig](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/gd.md)
* [Galego](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/gl.md)
* [Ἑλληνική](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/grc.md)
* [עברית](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/he.md)
* [हिन्दी](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hi.md)
* [Hrvatski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hr.md)
* [Magyar](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hu.md)
* [Հայերեն](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hy.md)
* [Bahasa Indonesia](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/id.md)
* [Íslenska](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/is.md)
* [Italiano](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/it.md)
* [日本語](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ja.md)
* [Қазақша](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/kk.md)
* [한국어](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ko.md)
* [Latina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/la.md)
* [Lietuvių](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lt.md)
* [Latviešu](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lv.md)
* [漢文/文言文](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lzh.md)
* [Македонски](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/mk.md)
* [Malti](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/mt.md)
* [Norsk(bokmål)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nb.md)
* [Nederlands](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nl.md)
* [Nynorsk](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nn.md)
* [Polski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/pl.md)
* [Português](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/pt.md)
* [Română](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ro.md)
* [Русский](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ru.md)
* [Slovenčina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sk.md)
* [Slovenščina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sl.md)
* [Српски](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sr-ec.md)
* [Srpski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sr-el.md)
* [Svenska](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sv.md)
* [தமிழ்](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ta.md)
* [ไทย](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/th.md)
* [Tagalog](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/tl.md)
* [Türkçe](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/tr.md)
* [Українська](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/uk.md)
* [Tiếng Việt](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/vi.md)
* [Wolof](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/wo.md)
* [中文(简体)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/zh-cn.md)
* [中文(繁體)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/zh-tw.md)

## Visualization examples

### `deplacy.render()`

![deplacy.render()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/render.png)

### `deplacy.serve()`

![deplacy.serve()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/serve.png)

### `deplacy.dot()`

![deplacy.dot()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/dot.png)

## Installation

```sh
pip install deplacy
```

You need to install spaCy, UniDic2UD, Stanza, NLP-Cube, or Trankit separately. For Google Colaboratories, please follow (and edit) the templates shown below.

## Templates for Google Colaboratory

* [Afrikaans](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/af.ipynb)
* [アイヌイタㇰ](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ain.ipynb)
* [العربية](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ar.ipynb)
* [Беларуская](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/be.ipynb)
* [Български](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/bg.ipynb)
* [Català](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ca.ipynb)
* [ⲙⲉⲧⲣⲉⲙⲛⲭⲏⲙⲓ](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cop.ipynb)
* [Čeština](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cs.ipynb)
* [Cymraeg](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cy.ipynb)
* [Dansk](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/da.ipynb)
* [Deutsch](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/de.ipynb)
* [Ελληνικά](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/el.ipynb)
* [English](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/en.ipynb)
* [Español](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/es.ipynb)
* [Eesti](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/et.ipynb)
* [Euskara](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/eu.ipynb)
* [فارسی](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fa.ipynb)
* [Suomi](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fi.ipynb)
* [Føroyskt](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fo.ipynb)
* [Français](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fr.ipynb)
* [Gaeilge](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ga.ipynb)
* [Gàidhlig](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/gd.ipynb)
* [Galego](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/gl.ipynb)
* [Ἑλληνική](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/grc.ipynb)
* [עברית](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/he.ipynb)
* [हिन्दी](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hi.ipynb)
* [Hrvatski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hr.ipynb)
* [Magyar](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hu.ipynb)
* [Հայերեն](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hy.ipynb)
* [Bahasa Indonesia](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/id.ipynb)
* [Íslenska](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/is.ipynb)
* [Italiano](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/it.ipynb)
* [日本語](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ja.ipynb)
* [Қазақша](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/kk.ipynb)
* [한국어](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ko.ipynb)
* [Latina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/la.ipynb)
* [Lietuvių](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lt.ipynb)
* [Latviešu](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lv.ipynb)
* [漢文/文言文](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lzh.ipynb)
* [Македонски](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/mk.ipynb)
* [Malti](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/mt.ipynb)
* [Norsk(bokmål)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nb.ipynb)
* [Nederlands](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nl.ipynb)
* [Nynorsk](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nn.ipynb)
* [Polski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/pl.ipynb)
* [Português](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/pt.ipynb)
* [Română](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ro.ipynb)
* [Русский](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ru.ipynb)
* [Slovenčina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sk.ipynb)
* [Slovenščina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sl.ipynb)
* [Српски](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sr-ec.ipynb)
* [Srpski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sr-el.ipynb)
* [Svenska](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sv.ipynb)
* [தமிழ்](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ta.ipynb)
* [ไทย](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/th.ipynb)
* [Tagalog](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/tl.ipynb)
* [Türkçe](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/tr.ipynb)
* [Українська](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/uk.ipynb)
* [Tiếng Việt](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/vi.ipynb)
* [Wolof](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/wo.ipynb)
* [中文(简体)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/zh-cn.ipynb)
* [中文(繁體)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/zh-tw.ipynb)

## Author

Koichi Yasuoka (安岡孝一)

## Reference

* Koichi Yasuoka: [deplacy: a CUI-based tree visualizer for Universal Dependencies](http://id.nii.ac.jp/1001/00208581/), IPSJ Symposium Series, Vol.2020, No.1 (December 2020), pp.95-100.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/KoichiYasuoka/deplacy",
    "name": "deplacy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "spacy stanza nlp",
    "author": "Koichi Yasuoka",
    "author_email": "yasuoka@kanji.zinbun.kyoto-u.ac.jp",
    "download_url": null,
    "platform": null,
    "description": "[![Current PyPI packages](https://badge.fury.io/py/deplacy.svg)](https://pypi.org/project/deplacy/)\n\n# deplacy\n\nSimple dependency visualizer for [spaCy](https://spacy.io/), [UniDic2UD](https://pypi.org/project/unidic2ud), [Stanza](https://stanfordnlp.github.io/stanza), [NLP-Cube](https://github.com/Adobe/NLP-Cube), [Trankit](https://github.com/nlp-uoregon/trankit), etc.\n\n## Usage with spaCy\n\n```py\n>>> import spacy\n>>> nlp=spacy.load(\"en_core_web_sm\")\n>>> doc=nlp(\"I saw a horse yesterday which had no name.\")\n>>> import deplacy\n>>> deplacy.render(doc)\nI         PRON  <\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557   nsubj\nsaw       VERB  \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\u2550\u2557\u2550\u255d\u2550\u2557 ROOT\na         DET   <\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 \u2551   \u2551 det\nhorse     NOUN  \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\u2550\u255d<\u255d \u2551   \u2551 dobj\nyesterday NOUN  <\u2550\u2550\u2550\u2550\u2550\u2550\u2551\u2550\u2550\u2550\u2550\u2550\u255d   \u2551 npadvmod\nwhich     DET   <\u2550\u2550\u2550\u2550\u2557 \u2551         \u2551 nsubj\nhad       AUX   \u2550\u2550\u2550\u2557\u2550\u255d<\u255d         \u2551 relcl\nno        DET   <\u2557 \u2551             \u2551 det\nname      NOUN  \u2550\u255d<\u255d             \u2551 dobj\n.         PUNCT <\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d punct\n```\n\n`deplacy.render(doc,BoxDrawingWidth=1,EnableCR=False,WordRight=False,CatenaAnalysis=True,file=None,Japanese=False)` renders `doc` on a terminal. For old terminals, whose Box Drawing characters are \"fullwidth\", `BoxDrawingWidth=2` nicely works. For several languages with \"proportional\" characters, `EnableCR=True` or `WordRight=True` may work well. `CatenaAnalysis=False` disables Immediate Catena Analysis.\n\n`deplacy.serve(doc,port=5000,RtoL=False)` invokes a simple web-server to visualize `doc` with SVG. Try to connect `http://127.0.0.1:5000` with your local browser. For Google Colaboratory, `port=None` visualizes `doc` directly on the notebook.\n\n`deplacy.dot(doc,RtoL=False)` returns [raw DOT](https://graphviz.readthedocs.io/en/stable/manual.html#using-raw-dot) string for `graphviz.Source`.\n\n## Other usages\n\n* [Afrikaans](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/af.md)\n* [\u30a2\u30a4\u30cc\u30a4\u30bf\u31f0](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ain.md)\n* [\u0627\u0644\u0639\u0631\u0628\u064a\u0629](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ar.md)\n* [\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/be.md)\n* [\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/bg.md)\n* [Catal\u00e0](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ca.md)\n* [\u2c99\u2c89\u2ca7\u2ca3\u2c89\u2c99\u2c9b\u2cad\u2c8f\u2c99\u2c93](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cop.md)\n* [\u010ce\u0161tina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cs.md)\n* [Cymraeg](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/cy.md)\n* [Dansk](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/da.md)\n* [Deutsch](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/de.md)\n* [\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/el.md)\n* [English](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/en.md)\n* [Espa\u00f1ol](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/es.md)\n* [Eesti](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/et.md)\n* [Euskara](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/eu.md)\n* [\u0641\u0627\u0631\u0633\u06cc](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fa.md)\n* [Suomi](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fi.md)\n* [F\u00f8royskt](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fo.md)\n* [Fran\u00e7ais](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/fr.md)\n* [Gaeilge](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ga.md)\n* [G\u00e0idhlig](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/gd.md)\n* [Galego](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/gl.md)\n* [\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/grc.md)\n* [\u05e2\u05d1\u05e8\u05d9\u05ea](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/he.md)\n* [\u0939\u093f\u0928\u094d\u0926\u0940](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hi.md)\n* [Hrvatski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hr.md)\n* [Magyar](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hu.md)\n* [\u0540\u0561\u0575\u0565\u0580\u0565\u0576](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/hy.md)\n* [Bahasa Indonesia](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/id.md)\n* [\u00cdslenska](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/is.md)\n* [Italiano](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/it.md)\n* [\u65e5\u672c\u8a9e](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ja.md)\n* [\u049a\u0430\u0437\u0430\u049b\u0448\u0430](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/kk.md)\n* [\ud55c\uad6d\uc5b4](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ko.md)\n* [Latina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/la.md)\n* [Lietuvi\u0173](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lt.md)\n* [Latvie\u0161u](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lv.md)\n* [\u6f22\u6587/\u6587\u8a00\u6587](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/lzh.md)\n* [\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/mk.md)\n* [Malti](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/mt.md)\n* [Norsk(bokm\u00e5l)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nb.md)\n* [Nederlands](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nl.md)\n* [Nynorsk](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/nn.md)\n* [Polski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/pl.md)\n* [Portugu\u00eas](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/pt.md)\n* [Rom\u00e2n\u0103](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ro.md)\n* [\u0420\u0443\u0441\u0441\u043a\u0438\u0439](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ru.md)\n* [Sloven\u010dina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sk.md)\n* [Sloven\u0161\u010dina](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sl.md)\n* [\u0421\u0440\u043f\u0441\u043a\u0438](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sr-ec.md)\n* [Srpski](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sr-el.md)\n* [Svenska](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/sv.md)\n* [\u0ba4\u0bae\u0bbf\u0bb4\u0bcd](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/ta.md)\n* [\u0e44\u0e17\u0e22](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/th.md)\n* [Tagalog](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/tl.md)\n* [T\u00fcrk\u00e7e](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/tr.md)\n* [\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/uk.md)\n* [Ti\u1ebfng Vi\u1ec7t](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/vi.md)\n* [Wolof](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/wo.md)\n* [\u4e2d\u6587(\u7b80\u4f53)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/zh-cn.md)\n* [\u4e2d\u6587(\u7e41\u9ad4)](https://github.com/KoichiYasuoka/deplacy/blob/master/doc/zh-tw.md)\n\n## Visualization examples\n\n### `deplacy.render()`\n\n![deplacy.render()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/render.png)\n\n### `deplacy.serve()`\n\n![deplacy.serve()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/serve.png)\n\n### `deplacy.dot()`\n\n![deplacy.dot()](https://raw.githubusercontent.com/KoichiYasuoka/deplacy/master/dot.png)\n\n## Installation\n\n```sh\npip install deplacy\n```\n\nYou need to install spaCy, UniDic2UD, Stanza, NLP-Cube, or Trankit separately. For Google Colaboratories, please follow (and edit) the templates shown below.\n\n## Templates for Google Colaboratory\n\n* [Afrikaans](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/af.ipynb)\n* [\u30a2\u30a4\u30cc\u30a4\u30bf\u31f0](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ain.ipynb)\n* [\u0627\u0644\u0639\u0631\u0628\u064a\u0629](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ar.ipynb)\n* [\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/be.ipynb)\n* [\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/bg.ipynb)\n* [Catal\u00e0](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ca.ipynb)\n* [\u2c99\u2c89\u2ca7\u2ca3\u2c89\u2c99\u2c9b\u2cad\u2c8f\u2c99\u2c93](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cop.ipynb)\n* [\u010ce\u0161tina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cs.ipynb)\n* [Cymraeg](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/cy.ipynb)\n* [Dansk](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/da.ipynb)\n* [Deutsch](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/de.ipynb)\n* [\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/el.ipynb)\n* [English](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/en.ipynb)\n* [Espa\u00f1ol](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/es.ipynb)\n* [Eesti](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/et.ipynb)\n* [Euskara](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/eu.ipynb)\n* [\u0641\u0627\u0631\u0633\u06cc](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fa.ipynb)\n* [Suomi](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fi.ipynb)\n* [F\u00f8royskt](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fo.ipynb)\n* [Fran\u00e7ais](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/fr.ipynb)\n* [Gaeilge](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ga.ipynb)\n* [G\u00e0idhlig](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/gd.ipynb)\n* [Galego](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/gl.ipynb)\n* [\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/grc.ipynb)\n* [\u05e2\u05d1\u05e8\u05d9\u05ea](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/he.ipynb)\n* [\u0939\u093f\u0928\u094d\u0926\u0940](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hi.ipynb)\n* [Hrvatski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hr.ipynb)\n* [Magyar](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hu.ipynb)\n* [\u0540\u0561\u0575\u0565\u0580\u0565\u0576](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/hy.ipynb)\n* [Bahasa Indonesia](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/id.ipynb)\n* [\u00cdslenska](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/is.ipynb)\n* [Italiano](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/it.ipynb)\n* [\u65e5\u672c\u8a9e](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ja.ipynb)\n* [\u049a\u0430\u0437\u0430\u049b\u0448\u0430](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/kk.ipynb)\n* [\ud55c\uad6d\uc5b4](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ko.ipynb)\n* [Latina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/la.ipynb)\n* [Lietuvi\u0173](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lt.ipynb)\n* [Latvie\u0161u](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lv.ipynb)\n* [\u6f22\u6587/\u6587\u8a00\u6587](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/lzh.ipynb)\n* [\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/mk.ipynb)\n* [Malti](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/mt.ipynb)\n* [Norsk(bokm\u00e5l)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nb.ipynb)\n* [Nederlands](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nl.ipynb)\n* [Nynorsk](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/nn.ipynb)\n* [Polski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/pl.ipynb)\n* [Portugu\u00eas](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/pt.ipynb)\n* [Rom\u00e2n\u0103](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ro.ipynb)\n* [\u0420\u0443\u0441\u0441\u043a\u0438\u0439](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ru.ipynb)\n* [Sloven\u010dina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sk.ipynb)\n* [Sloven\u0161\u010dina](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sl.ipynb)\n* [\u0421\u0440\u043f\u0441\u043a\u0438](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sr-ec.ipynb)\n* [Srpski](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sr-el.ipynb)\n* [Svenska](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/sv.ipynb)\n* [\u0ba4\u0bae\u0bbf\u0bb4\u0bcd](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/ta.ipynb)\n* [\u0e44\u0e17\u0e22](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/th.ipynb)\n* [Tagalog](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/tl.ipynb)\n* [T\u00fcrk\u00e7e](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/tr.ipynb)\n* [\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/uk.ipynb)\n* [Ti\u1ebfng Vi\u1ec7t](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/vi.ipynb)\n* [Wolof](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/wo.ipynb)\n* [\u4e2d\u6587(\u7b80\u4f53)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/zh-cn.ipynb)\n* [\u4e2d\u6587(\u7e41\u9ad4)](https://colab.research.google.com/github/KoichiYasuoka/deplacy/blob/master/doc/zh-tw.ipynb)\n\n## Author\n\nKoichi Yasuoka (\u5b89\u5ca1\u5b5d\u4e00)\n\n## Reference\n\n* Koichi Yasuoka: [deplacy: a CUI-based tree visualizer for Universal Dependencies](http://id.nii.ac.jp/1001/00208581/), IPSJ Symposium Series, Vol.2020, No.1 (December 2020), pp.95-100.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CUI-based Tree Visualizer for Universal Dependencies and Immediate Catena Analysis",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/KoichiYasuoka/deplacy",
        "Source": "https://github.com/KoichiYasuoka/deplacy",
        "Tracker": "https://github.com/KoichiYasuoka/deplacy/issues"
    },
    "split_keywords": [
        "spacy",
        "stanza",
        "nlp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1fff3a9cf2ee8f5478faccab4ea3f83803556edc37948e2853261bf4c5bed84",
                "md5": "7c8f21c7139f6c64efd9e8a6cdb204b3",
                "sha256": "7db42fbcd9ae95cfdf5a0990302bf28c8374f5e2e7b35eadb94768f436539999"
            },
            "downloads": -1,
            "filename": "deplacy-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c8f21c7139f6c64efd9e8a6cdb204b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 22672,
            "upload_time": "2024-03-30T14:36:45",
            "upload_time_iso_8601": "2024-03-30T14:36:45.590829Z",
            "url": "https://files.pythonhosted.org/packages/c1/ff/f3a9cf2ee8f5478faccab4ea3f83803556edc37948e2853261bf4c5bed84/deplacy-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-30 14:36:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "KoichiYasuoka",
    "github_project": "deplacy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "deplacy"
}
        
Elapsed time: 0.22140s