mirror of https://github.com/explosion/spaCy.git
Make norm use lower-case
This commit is contained in:
parent
de3954843e
commit
aeb7520133
|
@ -125,7 +125,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,
|
attrs.NORM: lambda string: string.lower(),
|
||||||
attrs.PREFIX: lambda string: string[0],
|
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,
|
||||||
|
|
Loading…
Reference in New Issue