mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 03:16:31 +03:00
extend suffixes from first to last
reverse suffix list in `tokenizer_pseudo_code()` so the order of returned tokens matches input order
This commit is contained in:
parent
6c67482f34
commit
af3d121ec9
|
@ -113,7 +113,7 @@ p
|
||||||
else:
|
else:
|
||||||
tokens.append(substring)
|
tokens.append(substring)
|
||||||
substring = ''
|
substring = ''
|
||||||
tokens.extend(suffixes)
|
tokens.extend(reversed(suffixes))
|
||||||
return tokens
|
return tokens
|
||||||
|
|
||||||
p
|
p
|
||||||
|
|
Loading…
Reference in New Issue
Block a user