mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Fix error numbers
This commit is contained in:
parent
264ff21f7a
commit
5d12e98550
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user