AvinashGupta / displacy-server

:telescope: Dependency Parse Tree Visualization with CSS & JavaScript

Home Page:https://displacy.spacy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency Parse Tree Visualization with CSS & JavaScript

displaCy is a web application that allows you to visualise the output of a syntactic dependency parser. It was written for https://spacy.io, and doesn't currently support any other parsers. Pull request with support for other parsing software would be very welcome.

The server is implemented as a Flask app, that both serves the static resources for the front-end (i.e., the HTML, CSS and Javascript files), and provides the spaCy parser as a REST service.

This is a fairly small and specific code-base, that was written in quite a hurry, and now feels rather old. However, it makes the spaCy dependency parser significantly easier to use. I usually use it as a sort of manual-by-example. Instead of a long document describing the parser's target annotations, I type in simple sentences and look at the predicted annotations.

Install and run

git clone https://github.com/spacy-io/displacy-server
cd displacy-server
pip install -r requirements.txt
python application.py

Read more

Authors

About

:telescope: Dependency Parse Tree Visualization with CSS & JavaScript

https://displacy.spacy.io

License:MIT License


Languages

Language:JavaScript 63.3%Language:Python 27.4%Language:HTML 9.3%