From e91366a216167b8478c422e77ac6172052df60cf Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 25 Oct 2019 11:25:44 +0200 Subject: [PATCH] Adjust formatting [ci skip] --- spacy/pipeline/entityruler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/pipeline/entityruler.py b/spacy/pipeline/entityruler.py index f78c8ed0e..9078f387e 100644 --- a/spacy/pipeline/entityruler.py +++ b/spacy/pipeline/entityruler.py @@ -120,6 +120,7 @@ class EntityRuler(object): @property def labels(self): """All labels present in the match patterns. + RETURNS (set): The string labels. DOCS: https://spacy.io/api/entityruler#labels @@ -130,7 +131,8 @@ class EntityRuler(object): @property def ent_ids(self): - """All entity ids present in the match patterns `id` properties + """All entity ids present in the match patterns `id` properties. + RETURNS (set): The string entity ids. DOCS: https://spacy.io/api/entityruler#ent_ids @@ -275,7 +277,6 @@ class EntityRuler(object): path (unicode / Path): The JSONL file to load. **kwargs: Other config paramters, mostly for consistency. - RETURNS (EntityRuler): The loaded entity ruler. DOCS: https://spacy.io/api/entityruler#from_disk