mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 01:51:58 +03:00
black
This commit is contained in:
parent
82f6a813f0
commit
6fe7c66f36
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user