Update error code number

This commit is contained in:
Adriane Boyd 2019-09-10 09:09:46 +02:00
parent cfc318b76c
commit 11ba042aca

View File

@ -441,7 +441,7 @@ cdef class Tokenizer:
attrs = [intify_attrs(spec, _do_deprecated=True) for spec in substrings]
orth = "".join([spec[ORTH] for spec in attrs])
if chunk != orth:
raise ValueError(Errors.E158.format(chunk=chunk, orth=orth, token_attrs=substrings))
raise ValueError(Errors.E161.format(chunk=chunk, orth=orth, token_attrs=substrings))
def add_special_case(self, unicode string, substrings):
"""Add a special-case tokenization rule.