diff --git a/spacy/pipeline/spancat.py b/spacy/pipeline/spancat.py index 1de51bb09..3d2f8def5 100644 --- a/spacy/pipeline/spancat.py +++ b/spacy/pipeline/spancat.py @@ -496,7 +496,6 @@ class SpanCategorizer(TrainablePipe): offset = 0 for i, doc in enumerate(docs): indices_i = indices[i].dataXd - allow_overlap = self.cfg["allow_overlap"] allow_overlap = cast(bool, self.cfg["allow_overlap"]) if self.cfg["max_positive"] == 1: doc.spans[self.key] = self._make_span_group_singlelabel(