From b83f1e372490acd86c6ddcb7b9f5b10b2d50b4ab Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 6 Oct 2023 14:22:43 +0200 Subject: [PATCH] Inline displaCy visualizations in docs (#13050) [ci skip] --- .../images/displacy-long2.html | 0 website/docs/usage/101/_named-entities.mdx | 8 +- website/docs/usage/101/_pos-deps.mdx | 7 +- website/docs/usage/linguistic-features.mdx | 15 +- website/docs/usage/rule-based-matching.mdx | 7 +- website/docs/usage/saving-loading.mdx | 8 +- website/docs/usage/v3-3.mdx | 8 +- website/docs/usage/visualizers.mdx | 32 +-- ...-founded.html => displacy-dep-founded.svg} | 0 .../public/images/displacy-ent-custom.html | 80 ------- website/public/images/displacy-ent-snek.html | 59 ----- website/public/images/displacy-ent1.html | 84 ------- website/public/images/displacy-ent2.html | 86 ------- .../{displacy-long.html => displacy-long.svg} | 0 website/public/images/displacy-long2.svg | 212 ++++++++++++++++++ .../public/images/displacy-span-custom.html | 84 ------- website/public/images/displacy-span.html | 123 ---------- website/src/components/embed.js | 18 +- website/src/remark.js | 4 +- website/src/styles/embed.module.sass | 8 + 20 files changed, 273 insertions(+), 570 deletions(-) rename website/{public => docs}/images/displacy-long2.html (100%) rename website/public/images/{displacy-dep-founded.html => displacy-dep-founded.svg} (100%) delete mode 100644 website/public/images/displacy-ent-custom.html delete mode 100644 website/public/images/displacy-ent-snek.html delete mode 100644 website/public/images/displacy-ent1.html delete mode 100644 website/public/images/displacy-ent2.html rename website/public/images/{displacy-long.html => displacy-long.svg} (100%) create mode 100644 website/public/images/displacy-long2.svg delete mode 100644 website/public/images/displacy-span-custom.html delete mode 100644 website/public/images/displacy-span.html diff --git a/website/public/images/displacy-long2.html b/website/docs/images/displacy-long2.html similarity index 100% rename from website/public/images/displacy-long2.html rename to website/docs/images/displacy-long2.html diff --git a/website/docs/usage/101/_named-entities.mdx b/website/docs/usage/101/_named-entities.mdx index 9ae4134d8..da43c0ddd 100644 --- a/website/docs/usage/101/_named-entities.mdx +++ b/website/docs/usage/101/_named-entities.mdx @@ -31,8 +31,6 @@ 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: -