From 48a206a95f3dcee833383810a573fd7c612a8b26 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 6 Mar 2019 13:20:44 +0100 Subject: [PATCH] Fix displaCy visualizations in docs (closes #3357) [ci skip] --- website/docs/images/displacy-compact.svg | 20 +- website/docs/images/displacy-long.html | 407 +++++++++++++++++----- website/docs/images/displacy-small.svg | 8 +- website/docs/images/displacy.svg | 8 +- website/docs/usage/101/_named-entities.md | 4 +- 5 files changed, 332 insertions(+), 115 deletions(-) diff --git a/website/docs/images/displacy-compact.svg b/website/docs/images/displacy-compact.svg index 89ef0098c..b2c7dda7c 100644 --- a/website/docs/images/displacy-compact.svg +++ b/website/docs/images/displacy-compact.svg @@ -1,52 +1,52 @@ This - DT + DET is - VBZ + VERB a - DT + DET sentence - NN + NOUN in - IN + ADP compact - JJ + ADJ mode - NN + NOUN with - IN + ADP custom - NN + NOUN styles. - NNS + NOUN diff --git a/website/docs/images/displacy-long.html b/website/docs/images/displacy-long.html index 0e87a44a8..8938f6a56 100644 --- a/website/docs/images/displacy-long.html +++ b/website/docs/images/displacy-long.html @@ -1,105 +1,322 @@ - - - Apple - NNP - - - is - VBZ - - - looking - VBG - - - at - IN - - - buying - VBG - - - U.K. startup - NN - - - for - IN - - - $ - $ - - - 1 - CD - - - billion - CD - - - - - nsubj + + + Apple + PROPN - - - - - - aux + + + is + VERB - - - - - - prep + + + looking + VERB - - - - - - pcomp + + + at + ADP - - - - - - dobj + + + buying + VERB - - - - - - prep + + + U.K. + PROPN - - - - - - quantmod + + + startup + NOUN - - - - - - compound + + + for + ADP - - - - - - pobj + + + $ + SYM - - + + + 1 + NUM + + + + billion + NUM + + + + + + + nsubj + + + + + + + + + + aux + + + + + + + + + + prep + + + + + + + + + + pcomp + + + + + + + + + + compound + + + + + + + + + + dobj + + + + + + + + + + prep + + + + + + + + + + quantmod + + + + + + + + + + compound + + + + + + + + + + pobj + + + + diff --git a/website/docs/images/displacy-small.svg b/website/docs/images/displacy-small.svg index db7801992..7f9d6baff 100644 --- a/website/docs/images/displacy-small.svg +++ b/website/docs/images/displacy-small.svg @@ -1,19 +1,19 @@ This - DT + DET is - VBZ + VERB a - DT + DET sentence. - NN + NOUN diff --git a/website/docs/images/displacy.svg b/website/docs/images/displacy.svg index 0fbc7ab08..738e0ca49 100644 --- a/website/docs/images/displacy.svg +++ b/website/docs/images/displacy.svg @@ -1,22 +1,22 @@ This - DT + DET is - VBZ + VERB a - DT + DET sentence. - NN + NOUN diff --git a/website/docs/usage/101/_named-entities.md b/website/docs/usage/101/_named-entities.md index 597c75e2b..e6bdfdf32 100644 --- a/website/docs/usage/101/_named-entities.md +++ b/website/docs/usage/101/_named-entities.md @@ -32,7 +32,7 @@ for ent in doc.ents: Using spaCy's built-in [displaCy visualizer](/usage/visualizers), here's what our example sentence and its named entities look like: -import DisplaCyLongHtml from 'images/displacy-long.html'; import { IframeĀ } from +import DisplaCyEntHtml from 'images/displacy-ent.html'; import { IframeĀ } from 'components/embed' - +