From 80b18124d20de79c5ef9c794ae496394c401edcb Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 29 Jul 2020 14:03:35 +0200 Subject: [PATCH] Fix docstring [ci skip] --- spacy/pipeline/pipe.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/pipeline/pipe.pyx b/spacy/pipeline/pipe.pyx index f8ca28724..05f900e08 100644 --- a/spacy/pipeline/pipe.pyx +++ b/spacy/pipeline/pipe.pyx @@ -32,7 +32,9 @@ class Pipe: raise NotImplementedError def __call__(self, Doc doc): - """Add context-sensitive embeddings to the Doc.tensor attribute. + """Apply the pipe to one document. The document is modified in place, + and returned. This usually happens under the hood when the nlp object + is called on a text and all components are applied to the Doc. docs (Doc): The Doc to preocess. RETURNS (Doc): The processed Doc.