mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
This commit is contained in:
commit
73bca3d382
|
@ -126,7 +126,7 @@ def word_shape(text):
|
||||||
LEX_ATTRS = {
|
LEX_ATTRS = {
|
||||||
attrs.LOWER: lambda string: string.lower(),
|
attrs.LOWER: lambda string: string.lower(),
|
||||||
attrs.NORM: lambda string: string.lower(),
|
attrs.NORM: lambda string: string.lower(),
|
||||||
attrs.PREFIX: lambda string: string[:3],
|
attrs.PREFIX: lambda string: string[0],
|
||||||
attrs.SUFFIX: lambda string: string[-3:],
|
attrs.SUFFIX: lambda string: string[-3:],
|
||||||
attrs.CLUSTER: lambda string: 0,
|
attrs.CLUSTER: lambda string: 0,
|
||||||
attrs.IS_ALPHA: lambda string: string.isalpha(),
|
attrs.IS_ALPHA: lambda string: string.isalpha(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user