From 9dd13cd76a12c4be4e998e38e7a8f0c997ad2462 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 14 May 2017 19:30:47 +0200 Subject: [PATCH] Update docstrings --- spacy/displacy/__init__.py | 2 +- spacy/displacy/render.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/displacy/__init__.py b/spacy/displacy/__init__.py index e84ba376d..427097369 100644 --- a/spacy/displacy/__init__.py +++ b/spacy/displacy/__init__.py @@ -18,7 +18,7 @@ def render(docs, style='dep', page=False, minify=False, jupyter=False, options={ minify (bool): Minify HTML markup. jupyter (bool): Experimental, use Jupyter's display() to output markup. options (dict): Visualiser-specific options, e.g. colors. - RETURNS: Rendered HTML markup. + RETURNS (unicode): Rendered HTML markup. """ if isinstance(docs, Doc): docs = [docs] diff --git a/spacy/displacy/render.py b/spacy/displacy/render.py index dfcaa8be1..c18bd2789 100644 --- a/spacy/displacy/render.py +++ b/spacy/displacy/render.py @@ -190,6 +190,7 @@ class EntityRenderer(object): text (unicode): Original text. spans (list): Individual entity spans and their start, end and label. + title (unicode or None): Document title set in Doc.user_data['title']. """ markup = '' offset = 0