All Projects → KoichiYasuoka → deplacy

KoichiYasuoka / deplacy

Licence: MIT license
CUI-based Tree Visualizer for Universal Dependencies and Immediate Catena Analysis

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to deplacy

spacy conll
Pipeline component for spaCy (and other spaCy-wrapped parsers such as spacy-stanza and spacy-udpipe) that adds CoNLL-U properties to a Doc and its sentences and tokens. Can also be used as a command-line tool.
Stars: ✭ 60 (-38.14%)
Mutual labels:  spacy, stanza
nlp-cheat-sheet-python
NLP Cheat Sheet, Python, spacy, LexNPL, NLTK, tokenization, stemming, sentence detection, named entity recognition
Stars: ✭ 69 (-28.87%)
Mutual labels:  spacy
bisemantic
Text pair classification
Stars: ✭ 12 (-87.63%)
Mutual labels:  spacy
Quora QuestionPairs DL
Kaggle Competition: Using deep learning to solve quora's question pairs problem
Stars: ✭ 54 (-44.33%)
Mutual labels:  spacy
spacymoji
💙 Emoji handling and meta data for spaCy with custom extension attributes
Stars: ✭ 174 (+79.38%)
Mutual labels:  spacy
spacy-iwnlp
German lemmatization with IWNLP as extension for spaCy
Stars: ✭ 22 (-77.32%)
Mutual labels:  spacy
spacy-langdetect
A fully customisable language detection pipeline for spaCy
Stars: ✭ 86 (-11.34%)
Mutual labels:  spacy
anonymisation
Anonymization of legal cases (Fr) based on Flair embeddings
Stars: ✭ 85 (-12.37%)
Mutual labels:  spacy
NLP Quickbook
NLP in Python with Deep Learning
Stars: ✭ 516 (+431.96%)
Mutual labels:  spacy
SkillNER
A (smart) rule based NLP module to extract job skills from text
Stars: ✭ 69 (-28.87%)
Mutual labels:  spacy
NER-and-Linking-of-Ancient-and-Historic-Places
An NER tool for ancient place names based on Pleiades and Spacy.
Stars: ✭ 26 (-73.2%)
Mutual labels:  spacy
topic modelling financial news
Topic modelling on financial news with Natural Language Processing
Stars: ✭ 51 (-47.42%)
Mutual labels:  spacy
ginza-transformers
Use custom tokenizers in spacy-transformers
Stars: ✭ 15 (-84.54%)
Mutual labels:  spacy
extractacy
Spacy pipeline object for extracting values that correspond to a named entity (e.g., birth dates, account numbers, laboratory results)
Stars: ✭ 47 (-51.55%)
Mutual labels:  spacy
anonymization-api
How to build and deploy an anonymization API with FastAPI
Stars: ✭ 51 (-47.42%)
Mutual labels:  spacy
lemmy
🤘Lemmy is a lemmatizer for Danish 🇩🇰 and Swedish 🇸🇪
Stars: ✭ 68 (-29.9%)
Mutual labels:  spacy
nlp workshop odsc europe20
Extensive tutorials for the Advanced NLP Workshop in Open Data Science Conference Europe 2020. We will leverage machine learning, deep learning and deep transfer learning to learn and solve popular tasks using NLP including NER, Classification, Recommendation \ Information Retrieval, Summarization, Classification, Language Translation, Q&A and T…
Stars: ✭ 127 (+30.93%)
Mutual labels:  spacy
SMMT
Social Media Mining Toolkit (SMMT) main repository
Stars: ✭ 116 (+19.59%)
Mutual labels:  spacy
ling
Natural Language Processing Toolkit in Golang
Stars: ✭ 57 (-41.24%)
Mutual labels:  spacy
spacy readability
spaCy pipeline component for adding text readability meta data to Doc objects.
Stars: ✭ 54 (-44.33%)
Mutual labels:  spacy

Current PyPI packages

deplacy

Simple dependency visualizer for spaCy, UniDic2UD, Stanza, NLP-Cube, Trankit, etc.

Usage with spaCy

>>> 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 string for graphviz.Source.

Other usages

Visualization examples

deplacy.render()

deplacy.render()

deplacy.serve()

deplacy.serve()

deplacy.dot()

deplacy.dot()

Installation

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

Author

Koichi Yasuoka (安岡孝一)

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].