mirror of https://github.com/explosion/spaCy.git
Update docstrings
This commit is contained in:
parent
a04550605a
commit
9dd13cd76a
|
@ -18,7 +18,7 @@ def render(docs, style='dep', page=False, minify=False, jupyter=False, options={
|
||||||
minify (bool): Minify HTML markup.
|
minify (bool): Minify HTML markup.
|
||||||
jupyter (bool): Experimental, use Jupyter's display() to output markup.
|
jupyter (bool): Experimental, use Jupyter's display() to output markup.
|
||||||
options (dict): Visualiser-specific options, e.g. colors.
|
options (dict): Visualiser-specific options, e.g. colors.
|
||||||
RETURNS: Rendered HTML markup.
|
RETURNS (unicode): Rendered HTML markup.
|
||||||
"""
|
"""
|
||||||
if isinstance(docs, Doc):
|
if isinstance(docs, Doc):
|
||||||
docs = [docs]
|
docs = [docs]
|
||||||
|
|
|
@ -190,6 +190,7 @@ class EntityRenderer(object):
|
||||||
|
|
||||||
text (unicode): Original text.
|
text (unicode): Original text.
|
||||||
spans (list): Individual entity spans and their start, end and label.
|
spans (list): Individual entity spans and their start, end and label.
|
||||||
|
title (unicode or None): Document title set in Doc.user_data['title'].
|
||||||
"""
|
"""
|
||||||
markup = ''
|
markup = ''
|
||||||
offset = 0
|
offset = 0
|
||||||
|
|
Loading…
Reference in New Issue