Set prefix length back to 1

This commit is contained in:
Matthew Honnibal 2017-10-10 19:32:54 +02:00
parent a635240398
commit 8143618497

View File

@ -126,7 +126,7 @@ def word_shape(text):
LEX_ATTRS = {
attrs.LOWER: 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.CLUSTER: lambda string: 0,
attrs.IS_ALPHA: lambda string: string.isalpha(),