def render(<EOL>docs, style="<STR_LIT>", page=False, minify=False, jupyter=None, options={}, manual=False<EOL>):
factories = {<EOL>"<STR_LIT>": (DependencyRenderer, parse_deps),<EOL>"<STR_LIT>": (EntityRenderer, parse_ents),<EOL>}<EOL>if style not in factories:<EOL><INDENT>raise ValueError(Errors.E087.format(style=style))<EOL><DEDENT>if isinstance(docs, (Doc, Span, dict)):<EOL><INDENT>docs = [docs]<EOL><DEDENT>docs = [obj if not isinstance(obj, Span) else obj.as_doc() for obj in docs]<EOL>if not all(isinstance(obj, (Doc, Span, dict)) for obj in docs):<EOL><INDENT>raise ValueError(Errors.E096)<EOL><DEDENT>renderer, converter = factories[style]<EOL>renderer = renderer(options=options)<EOL>parsed = [converter(doc, options) for doc in docs] if not manual else docs<EOL>_html["<STR_LIT>"] = renderer.render(parsed, page=page, minify=minify).strip()<EOL>html = _html["<STR_LIT>"]<EOL>if RENDER_WRAPPER is not None:<EOL><INDENT>html = RENDER_WRAPPER(html)<EOL><DEDENT>if jupyter or (jupyter is None and is_in_jupyter()):<EOL><INDENT>from IPython.core.display import display, HTML<EOL>return display(HTML(html))<EOL><DEDENT>return html<EOL>
Render displaCy visualisation.

    docs (list or Doc): Document(s) to visualise.
    style (unicode): Visualisation style, 'dep' or 'ent'.
    page (bool): Render markup as full HTML page.
    minify (bool): Minify HTML markup.
    jupyter (bool): Override Jupyter auto-detection.
    options (dict): Visualiser-specific options, e.g. colors.
    manual (bool): Don't parse `Doc` and instead expect a dict/list of dicts.
    RETURNS (unicode): Rendered HTML markup.

    DOCS: https://spacy.io/api/top-level#displacy.render
    USAGE: https://spacy.io/usage/visualizers