From 8143618497399543cbceb8c895cc071961094d43 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 10 Oct 2017 19:32:54 +0200 Subject: [PATCH] Set prefix length back to 1 --- spacy/lang/lex_attrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/lang/lex_attrs.py b/spacy/lang/lex_attrs.py index 63695d8a1..d4beebd26 100644 --- a/spacy/lang/lex_attrs.py +++ b/spacy/lang/lex_attrs.py @@ -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(),