Fix error numbers

This commit is contained in:
Paul O'Leary McCann 2022-11-07 19:23:38 +09:00
parent 264ff21f7a
commit 5d12e98550
2 changed files with 2 additions and 2 deletions

View File

@ -405,4 +405,4 @@ class TextCategorizer(TrainablePipe):
raise ValueError(Errors.E895.format(value=ex.reference.cats))
for val in ex.reference.cats.values():
if not (val == 1.0 or val == 0.0):
raise ValueError(Errors.E852.format(val=val))
raise ValueError(Errors.E851.format(val=val))

View File

@ -197,7 +197,7 @@ class MultiLabel_TextCategorizer(TextCategorizer):
for eg in subbatch:
for val in eg.reference.cats.values():
if not (val == 1.0 or val == 0.0):
raise ValueError(Errors.E852.format(val=val))
raise ValueError(Errors.E851.format(val=val))
doc_sample = [eg.reference for eg in subbatch]
label_sample, _ = self._examples_to_truth(subbatch)
self._require_labels()