From c792019350f685cf6bb4130ebbb2184c3ef2e7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Fri, 5 Aug 2022 14:17:07 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sofie Van Landeghem --- spacy/pipeline/entity_linker.py | 2 +- spacy/pipeline/morphologizer.pyx | 2 +- spacy/pipeline/senter.pyx | 2 +- spacy/pipeline/tagger.pyx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/pipeline/entity_linker.py b/spacy/pipeline/entity_linker.py index 62a4053e0..844ab6185 100644 --- a/spacy/pipeline/entity_linker.py +++ b/spacy/pipeline/entity_linker.py @@ -539,7 +539,7 @@ class EntityLinker(TrainablePipe): """Modify a batch of documents, using pre-computed scores. docs (Iterable[Doc]): The documents to modify. - activations (List[str]): The activations used for setting annotations, produced + activations (ActivationsT): The activations used for setting annotations, produced by EntityLinker.predict. DOCS: https://spacy.io/api/entitylinker#set_annotations diff --git a/spacy/pipeline/morphologizer.pyx b/spacy/pipeline/morphologizer.pyx index df0151ffd..68bc76ad7 100644 --- a/spacy/pipeline/morphologizer.pyx +++ b/spacy/pipeline/morphologizer.pyx @@ -234,7 +234,7 @@ class Morphologizer(Tagger): """Modify a batch of documents, using pre-computed scores. docs (Iterable[Doc]): The documents to modify. - batch_tag_ids: The IDs to set, produced by Morphologizer.predict. + activations (Dict): The activations used for setting annotations, produced by Morphologizer.predict. DOCS: https://spacy.io/api/morphologizer#set_annotations """ diff --git a/spacy/pipeline/senter.pyx b/spacy/pipeline/senter.pyx index b637ad0ef..a80bcb0f3 100644 --- a/spacy/pipeline/senter.pyx +++ b/spacy/pipeline/senter.pyx @@ -126,7 +126,7 @@ class SentenceRecognizer(Tagger): """Modify a batch of documents, using pre-computed scores. docs (Iterable[Doc]): The documents to modify. - batch_tag_ids: The IDs to set, produced by SentenceRecognizer.predict. + activations (Dict): The activations used for setting annotations, produced by SentenceRecognizer.predict. DOCS: https://spacy.io/api/sentencerecognizer#set_annotations """ diff --git a/spacy/pipeline/tagger.pyx b/spacy/pipeline/tagger.pyx index fbaccae40..13f80409b 100644 --- a/spacy/pipeline/tagger.pyx +++ b/spacy/pipeline/tagger.pyx @@ -171,7 +171,7 @@ class Tagger(TrainablePipe): """Modify a batch of documents, using pre-computed scores. docs (Iterable[Doc]): The documents to modify. - batch_tag_ids: The IDs to set, produced by Tagger.predict. + activations (Dict): The activations used for setting annotations, produced by Tagger.predict. DOCS: https://spacy.io/api/tagger#set_annotations """