From 3d86539e23749ef1c33c6ff6040f54759d37f719 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 20 Dec 2023 17:22:10 +0100 Subject: [PATCH] Fix docstring --- spacy/ml/models/textcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/ml/models/textcat.py b/spacy/ml/models/textcat.py index e0dcb47aa..93929bd4e 100644 --- a/spacy/ml/models/textcat.py +++ b/spacy/ml/models/textcat.py @@ -230,7 +230,7 @@ def build_reduce_text_classifier( exclusive_classes (bool): Whether or not classes are mutually exclusive. use_reduce_first (bool): Pool by using the hidden representation of the first token of a `Doc`. - use_reduce_first (bool): Pool by using the hidden representation of the + use_reduce_last (bool): Pool by using the hidden representation of the last token of a `Doc`. use_reduce_max (bool): Pool by taking the maximum values of the hidden representations of a `Doc`.