mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-15 03:56:23 +03:00
check port in use and add itself
This commit is contained in:
parent
d2de601b7b
commit
6b69fe3222
|
@ -13,18 +13,19 @@ from ..errors import Errors, Warnings
|
|||
from ..util import is_in_jupyter
|
||||
from ..util import is_port_in_use
|
||||
|
||||
|
||||
_html = {}
|
||||
RENDER_WRAPPER = None
|
||||
|
||||
|
||||
def render(
|
||||
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
|
||||
style: str = "dep",
|
||||
page: bool = False,
|
||||
minify: bool = False,
|
||||
jupyter: Optional[bool] = None,
|
||||
options: Dict[str, Any] = {},
|
||||
manual: bool = False,
|
||||
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
|
||||
style: str = "dep",
|
||||
page: bool = False,
|
||||
minify: bool = False,
|
||||
jupyter: Optional[bool] = None,
|
||||
options: Dict[str, Any] = {},
|
||||
manual: bool = False,
|
||||
) -> str:
|
||||
"""Render displaCy visualisation.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user