Remove inlined iframe content

This commit is contained in:
Marcus Blättermann 2022-11-17 17:50:07 +01:00
parent 1bfff8390a
commit 94f9ddefa4
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
7 changed files with 11 additions and 31 deletions

View File

@ -32,11 +32,10 @@ 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-ent1.html'
import { Iframe } from 'components/embed'
<Iframe
title="displaCy visualization of entities"
html={DisplaCyEntHtml}
src="/images/displacy-ent1.html"
height={100}
/>

View File

@ -57,11 +57,10 @@ for token in doc:
Using spaCy's built-in [displaCy visualizer](/usage/visualizers), here's what
our example sentence and its dependencies look like:
import DisplaCyLongHtml from 'images/displacy-long.html'
import { Iframe } from 'components/embed'
<Iframe
title="displaCy visualization of dependencies and entities"
html={DisplaCyLongHtml}
src="/images/displacy-long.html"
height={450}
/>

View File

@ -298,11 +298,9 @@ for token in doc:
| toward | `prep` | shift | `NOUN` | manufacturers |
| manufacturers | `pobj` | toward | `ADP` | |
import DisplaCyLong2Html from 'images/displacy-long2.html'
<Iframe
title="displaCy visualization of dependencies and entities 2"
html={DisplaCyLong2Html}
src="/images/displacy-long2.html"
height={450}
/>
@ -732,11 +730,9 @@ doc = nlp(text)
displacy.serve(doc, style="ent")
```
import DisplacyEntHtml from 'images/displacy-ent2.html'
<Iframe
title="displaCy visualizer for entities"
html={DisplacyEntHtml}
src="/images/displacy-ent2.html"
height={180}
/>

View File

@ -1105,11 +1105,9 @@ relations and tokens we want to match:
> displacy.serve(doc)
> ```
import DisplaCyDepFoundedHtml from 'images/displacy-dep-founded.html'
<Iframe
title="displaCy visualization of dependencies"
html={DisplaCyDepFoundedHtml}
src="/images/displacy-dep-founded.html"
height={450}
/>

View File

@ -580,11 +580,9 @@ After installing the package, the custom colors will be used when visualizing
text with `displacy`. Whenever the label `SNEK` is assigned, it will be
displayed in `#3dff74`.
import DisplaCyEntSnekHtml from 'images/displacy-ent-snek.html'
<Iframe
title="displaCy visualization of entities"
html={DisplaCyEntSnekHtml}
src="/images/displacy-ent-snek.html"
height={100}
/>

View File

@ -77,11 +77,9 @@ doc.spans["custom"] = [Span(doc, 3, 6, "ORG"), Span(doc, 5, 6, "GPE")]
displacy.serve(doc, style="span", options={"spans_key": "custom"})
```
import DisplacySpanHtml from 'images/displacy-span.html'
<Iframe
title="displaCy visualizer for overlapping spans"
html={DisplacySpanHtml}
src="/images/displacy-span.html"
height={180}
/>

View File

@ -116,11 +116,9 @@ doc = nlp(text)
displacy.serve(doc, style="ent")
```
import DisplacyEntHtml from 'images/displacy-ent2.html'
<Iframe
title="displaCy visualizer for entities"
html={DisplacyEntHtml}
src="/images/displacy-ent2.html"
height={180}
/>
@ -147,11 +145,9 @@ use the `colors` setting to add your own colors for them.
> displacy.serve(doc, style="ent", options=options)
> ```
import DisplacyEntCustomHtml from 'images/displacy-ent-custom.html'
<Iframe
title="displaCy visualizer for entities (custom styling)"
html={DisplacyEntCustomHtml}
src="/images/displacy-ent-custom.html"
height={225}
/>
@ -199,11 +195,9 @@ doc.spans["sc"] = [
displacy.serve(doc, style="span")
```
import DisplacySpanHtml from 'images/displacy-span.html'
<Iframe
title="displaCy visualizer for overlapping spans"
html={DisplacySpanHtml}
src="/images/displacy-span.html"
height={180}
/>
@ -227,11 +221,9 @@ specify which one displaCy should use with `spans_key` (`sc` is the default).
> displacy.serve(doc, style="span", options=options)
> ```
import DisplacySpanCustomHtml from 'images/displacy-span-custom.html'
<Iframe
title="displaCy visualizer for spans (custom spans_key)"
html={DisplacySpanCustomHtml}
src="images/displacy-span-custom.html"
height={225}
/>