Use American spelling for "visualizers"
Kinda sucks because we normally use British spelling, but it just looks
weird and confusing otherwise... same with tokenizer and all other
library internals. So this is sort of the "official policy" for now.
include ../../_includes/_mixins
p
- | As of v2.0, spaCy comes with a built-in visualisation suite. For more
+ | As of v2.0, spaCy comes with a built-in visualization suite. For more
| info and examples, see the usage workflow on
- | #[+a("/docs/usage/visualizing") visualising spaCy].
+ | #[+a("/docs/usage/visualizers") visualizing spaCy].
+h(2, "serve") serve
+tag method
p
- | Serve a dependency parse tree or named entity visualisation to view it
+ | Serve a dependency parse tree or named entity visualization to view it
| in your browser. Will run a simple web server.
+aside-code("Example").
@@ -27,13 +27,13 @@ p
+row
+cell #[code docs]
+cell list or #[code Doc]
- +cell Document(s) to visualise.
+ +cell Document(s) to visualize.
+cell
+row
+cell #[code style]
+cell unicode
- +cell Visualisation style, #[code 'dep'] or #[code 'ent'].
+ +cell Visualization style, #[code 'dep'] or #[code 'ent'].
+cell #[code 'dep']
+row
@@ -51,19 +51,19 @@ p
+row
+cell #[code options]
+cell dict
- +cell #[+a("#options") Visualiser-specific options], e.g. colors.
+ +cell #[+a("#options") Visualizer-specific options], e.g. colors.
+cell #[code {}]
+row
+cell #[code port]
+cell int
- +cell Port to serve visualisation.
+ +cell Port to serve visualization.
+cell #[code 5000]
+h(2, "render") render
+tag method
-p Render a dependency parse tree or named entity visualisation.
+p Render a dependency parse tree or named entity visualization.
+aside-code("Example").
import spacy
@@ -76,13 +76,13 @@ p Render a dependency parse tree or named entity visualisation.
+row
+cell #[code docs]
+cell list or #[code Doc]
- +cell Document(s) to visualise.
+ +cell Document(s) to visualize.
+cell
+row
+cell #[code style]
+cell unicode
- +cell Visualisation style, #[code 'dep'] or #[code 'ent'].
+ +cell Visualization style, #[code 'dep'] or #[code 'ent'].
+cell #[code 'dep']
+row
@@ -108,7 +108,7 @@ p Render a dependency parse tree or named entity visualisation.
+row
+cell #[code options]
+cell dict
- +cell #[+a("#options") Visualiser-specific options], e.g. colors.
+ +cell #[+a("#options") Visualizer-specific options], e.g. colors.
+cell #[code {}]
+footrow
@@ -117,14 +117,14 @@ p Render a dependency parse tree or named entity visualisation.
+cell Rendered HTML markup.
+cell
-+h(2, "options") Visualiser options
++h(2, "options") Visualizer options
p
| The #[code options] argument lets you specify additional settings for
- | each visualiser. If a setting is not present in the options, the default
+ | each visualizer. If a setting is not present in the options, the default
| value will be used.
-+h(3, "options-dep") Dependency Visualiser options
++h(3, "options-dep") Dependency Visualizer options
+aside-code("Example").
options = {'compact': True, 'color': 'blue'}
@@ -191,7 +191,7 @@ p
+cell Distance between words in px.
+cell #[code 175] / #[code 85] (compact)
-+h(3, "options-ent") Named Entity Visualiser options
++h(3, "options-ent") Named Entity Visualizer options
+aside-code("Example").
options = {'ents': ['person', 'org', 'product'],
