mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 04:10:20 +03:00
Correction
This commit is contained in:
parent
9af76aaf73
commit
872bda2f14
|
@ -274,7 +274,7 @@ class EditTreeLemmatizer(TrainablePipe):
|
||||||
if self.trees.apply(candidate_tree_id, text) is not None:
|
if self.trees.apply(candidate_tree_id, text) is not None:
|
||||||
doc_compat_guesses.append((candidate_tree_id, to_lowercase))
|
doc_compat_guesses.append((candidate_tree_id, to_lowercase))
|
||||||
break
|
break
|
||||||
doc_scores[i, candidate] = np.finfo(np.float32).min
|
doc_scores[j, candidate] = np.finfo(np.float32).min
|
||||||
else:
|
else:
|
||||||
doc_compat_guesses.append((-1, to_lowercase))
|
doc_compat_guesses.append((-1, to_lowercase))
|
||||||
guesses.append(np.array(doc_compat_guesses))
|
guesses.append(np.array(doc_compat_guesses))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user