mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-13 07:55:49 +03:00
Bug fix to pseudocode for tokenizer customization (#2604)
This commit is contained in:
parent
e531a827db
commit
055cc0de44
|
@ -129,8 +129,8 @@ p
|
||||||
substring = substring[split:]
|
substring = substring[split:]
|
||||||
elif find_suffix(substring) is not None:
|
elif find_suffix(substring) is not None:
|
||||||
split = find_suffix(substring)
|
split = find_suffix(substring)
|
||||||
suffixes.append(substring[split:])
|
suffixes.append(substring[-split:])
|
||||||
substring = substring[:split]
|
substring = substring[:-split]
|
||||||
elif find_infixes(substring):
|
elif find_infixes(substring):
|
||||||
infixes = find_infixes(substring)
|
infixes = find_infixes(substring)
|
||||||
offset = 0
|
offset = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user