diff --git a/spacy/displacy/templates.py b/spacy/displacy/templates.py index 4a7c596d8..ade75d1d6 100644 --- a/spacy/displacy/templates.py +++ b/spacy/displacy/templates.py @@ -44,14 +44,14 @@ TPL_ENTS = """ TPL_ENT = """ - + {text} {label} """ TPL_ENT_RTL = """ - + {text} {label} diff --git a/website/docs/images/displacy-ent-custom.html b/website/docs/images/displacy-ent-custom.html index 15294db49..709c6f631 100644 --- a/website/docs/images/displacy-ent-custom.html +++ b/website/docs/images/displacy-ent-custom.html @@ -1,9 +1,33 @@ -
But -Google -ORGis starting from behind. The company made a late push into hardware, -and -Apple -ORG’s Siri, available on iPhones, and -Amazon -ORG’s Alexa software, which runs on its Echo and Dot devices, have clear -leads in consumer adoption.
+
But + Google + ORGis starting from behind. The company made a late push into hardware, and + Apple + ORG’s Siri, available on iPhones, and + Amazon + ORG’s Alexa software, which runs on its Echo and Dot devices, have clear leads in consumer + adoption.
diff --git a/website/docs/images/displacy-ent-snek.html b/website/docs/images/displacy-ent-snek.html index 1e4920fb5..c8b416d8d 100644 --- a/website/docs/images/displacy-ent-snek.html +++ b/website/docs/images/displacy-ent-snek.html @@ -2,17 +2,25 @@ class="entities" style="line-height: 2.5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px" > - 🌱🌿 🐍 SNEK ____ 🌳🌲 ____ 👨‍🌾 HUMAN 🏘️ + 🌱🌿 + 🐍 + SNEK + ____ 🌳🌲 ____ + 👨‍🌾 + HUMAN + 🏘️ diff --git a/website/docs/images/displacy-ent1.html b/website/docs/images/displacy-ent1.html index 6e3de2675..708df8093 100644 --- a/website/docs/images/displacy-ent1.html +++ b/website/docs/images/displacy-ent1.html @@ -1,16 +1,37 @@ -
- +
+ Apple - ORG + ORG is looking at buying - + U.K. - GPE + GPE startup for - + $1 billion - MONEY + MONEY
diff --git a/website/docs/images/displacy-ent2.html b/website/docs/images/displacy-ent2.html index e72640b51..5e1833ca0 100644 --- a/website/docs/images/displacy-ent2.html +++ b/website/docs/images/displacy-ent2.html @@ -1,18 +1,39 @@ -
+
When - + Sebastian Thrun - PERSON + PERSON started working on self-driving cars at - + Google - ORG + ORG in - + 2007 - DATE + DATE , few people outside of the company took him seriously.