def serve(<EOL>docs,<EOL>style="<STR_LIT>",<EOL>page=True,<EOL>minify=False,<EOL>options={},<EOL>manual=False,<EOL>port=<NUM_LIT>,<EOL>host="<STR_LIT>",<EOL>):
from wsgiref import simple_server<EOL>if is_in_jupyter():<EOL><INDENT>user_warning(Warnings.W011)<EOL><DEDENT>render(docs, style=style, page=page, minify=minify, options=options, manual=manual)<EOL>httpd = simple_server.make_server(host, port, app)<EOL>print("<STR_LIT>".format(style))<EOL>print("<STR_LIT>".format(host, port))<EOL>try:<EOL><INDENT>httpd.serve_forever()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print("<STR_LIT>".format(port))<EOL><DEDENT>finally:<EOL><INDENT>httpd.server_close()<EOL><DEDENT>
Serve 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.
    options (dict): Visualiser-specific options, e.g. colors.
    manual (bool): Don't parse `Doc` and instead expect a dict/list of dicts.
    port (int): Port to serve visualisation.
    host (unicode): Host to serve visualisation.

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