Improve naming

Co-authored-by: Daniël de Kok <me@github.danieldk.eu>
This commit is contained in:
Richard Hudson 2023-01-17 15:11:20 +01:00 committed by GitHub
parent 175b4871aa
commit dd5975ad12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ class EditTreeLemmatizer(TrainablePipe):
doc_scores = self.numpy_ops.asarray(doc_scores)
doc_compat_guesses = []
for i, token in enumerate(doc):
for _ in range(predictions_to_consider):
for _ in range(top_k):
candidate = int(doc_scores[i].argmax())
candidate_tree_id = self.cfg["labels"][candidate]
if self.trees.apply(candidate_tree_id, token.text) is not None: