From e520eb3f6c16df58f1b844b8ff985cf6962f67d0 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 18 Aug 2019 16:29:29 +0200 Subject: [PATCH] Make visualized NER examples more clear (closes #4104) [ci skip] --- website/docs/images/displacy-ent.html | 18 ------------------ website/docs/images/displacy-ent1.html | 16 ++++++++++++++++ website/docs/images/displacy-ent2.html | 18 ++++++++++++++++++ website/docs/usage/101/_named-entities.md | 4 ++-- website/docs/usage/linguistic-features.md | 11 ++++------- website/docs/usage/visualizers.md | 11 ++++------- 6 files changed, 44 insertions(+), 34 deletions(-) delete mode 100644 website/docs/images/displacy-ent.html create mode 100644 website/docs/images/displacy-ent1.html create mode 100644 website/docs/images/displacy-ent2.html diff --git a/website/docs/images/displacy-ent.html b/website/docs/images/displacy-ent.html deleted file mode 100644 index 4432bfd45..000000000 --- a/website/docs/images/displacy-ent.html +++ /dev/null @@ -1,18 +0,0 @@ -
But -Google -ORGis starting from behind. The company made a late push into hardware, -and -Apple -ORG’s -Siri -PRODUCT, available on -iPhones -PRODUCT, and -Amazon -ORG’s -Alexa -PRODUCTsoftware, which runs on its -Echo -PRODUCTand -Dot -PRODUCTdevices, have clear leads in consumer adoption.
diff --git a/website/docs/images/displacy-ent1.html b/website/docs/images/displacy-ent1.html new file mode 100644 index 000000000..6e3de2675 --- /dev/null +++ b/website/docs/images/displacy-ent1.html @@ -0,0 +1,16 @@ +
+ + Apple + ORG + + is looking at buying + + U.K. + GPE + + startup for + + $1 billion + MONEY + +
diff --git a/website/docs/images/displacy-ent2.html b/website/docs/images/displacy-ent2.html new file mode 100644 index 000000000..e72640b51 --- /dev/null +++ b/website/docs/images/displacy-ent2.html @@ -0,0 +1,18 @@ +
+ When + + Sebastian Thrun + PERSON + + started working on self-driving cars at + + Google + ORG + + in + + 2007 + DATE + + , few people outside of the company took him seriously. +
diff --git a/website/docs/usage/101/_named-entities.md b/website/docs/usage/101/_named-entities.md index e6bdfdf32..54db6dbe8 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 DisplaCyEntHtml from 'images/displacy-ent.html'; import { Iframe } from +import DisplaCyEntHtml from 'images/displacy-ent1.html'; import { Iframe } from 'components/embed' -