mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-15 02:32:37 +03:00
black
This commit is contained in:
parent
db361db874
commit
a5b9e63664
|
@ -238,7 +238,7 @@ class SpanFinder(TrainablePipe):
|
|||
end_token_score = doc_scores[k]
|
||||
# If token is an END check whether the lenght contraint is met
|
||||
if end_token_score[1] >= self.threshold:
|
||||
span_length = (k + 1 - j)
|
||||
span_length = k + 1 - j
|
||||
if span_length > self.max_length:
|
||||
break
|
||||
elif self.min_length <= span_length:
|
||||
|
|
Loading…
Reference in New Issue
Block a user