mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-19 13:00:35 +03:00
Update error message number
This commit is contained in:
parent
73ca0ce4f3
commit
d92e8c8ac8
|
@ -97,7 +97,6 @@ cdef class Tokenizer:
|
||||||
if self._property_init_count <= self._property_init_max:
|
if self._property_init_count <= self._property_init_max:
|
||||||
self._property_init_count += 1
|
self._property_init_count += 1
|
||||||
|
|
||||||
|
|
||||||
property infix_finditer:
|
property infix_finditer:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return self._infix_finditer
|
return self._infix_finditer
|
||||||
|
@ -530,7 +529,7 @@ cdef class Tokenizer:
|
||||||
attrs = [intify_attrs(spec, _do_deprecated=True) for spec in substrings]
|
attrs = [intify_attrs(spec, _do_deprecated=True) for spec in substrings]
|
||||||
orth = "".join([spec[ORTH] for spec in attrs])
|
orth = "".join([spec[ORTH] for spec in attrs])
|
||||||
if chunk != orth:
|
if chunk != orth:
|
||||||
raise ValueError(Errors.E162.format(chunk=chunk, orth=orth, token_attrs=substrings))
|
raise ValueError(Errors.E167.format(chunk=chunk, orth=orth, token_attrs=substrings))
|
||||||
|
|
||||||
def add_special_case(self, unicode string, substrings):
|
def add_special_case(self, unicode string, substrings):
|
||||||
"""Add a special-case tokenization rule.
|
"""Add a special-case tokenization rule.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user