diff --git a/spacy/pipeline/span_finder.py b/spacy/pipeline/span_finder.py index bdfa055f3..ba21938c6 100644 --- a/spacy/pipeline/span_finder.py +++ b/spacy/pipeline/span_finder.py @@ -231,7 +231,7 @@ class SpanFinder(TrainablePipe): doc.spans[self.predicted_key] = [] starts = [] ends = [] - doc_scores = scores[offset:offset + len(doc)] + doc_scores = scores[offset : offset + len(doc)] for token, token_score in zip(doc, doc_scores): if token_score[0] >= self.threshold: