mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-28 18:24:08 +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_in_jupyter
|
||||||
from ..util import is_port_in_use
|
from ..util import is_port_in_use
|
||||||
|
|
||||||
|
|
||||||
_html = {}
|
_html = {}
|
||||||
RENDER_WRAPPER = None
|
RENDER_WRAPPER = None
|
||||||
|
|
||||||
|
|
||||||
def render(
|
def render(
|
||||||
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
|
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
|
||||||
style: str = "dep",
|
style: str = "dep",
|
||||||
page: bool = False,
|
page: bool = False,
|
||||||
minify: bool = False,
|
minify: bool = False,
|
||||||
jupyter: Optional[bool] = None,
|
jupyter: Optional[bool] = None,
|
||||||
options: Dict[str, Any] = {},
|
options: Dict[str, Any] = {},
|
||||||
manual: bool = False,
|
manual: bool = False,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Render displaCy visualisation.
|
"""Render displaCy visualisation.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user