From 3cab1d9a29943bce3df9fb9bea080cf6b652348c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 7 Nov 2014 04:41:29 +1100 Subject: [PATCH] * Refine word_shape feature, by trimming the max sequence length --- spacy/orth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/orth.py b/spacy/orth.py index 0152fd17e..0462d15df 100644 --- a/spacy/orth.py +++ b/spacy/orth.py @@ -146,7 +146,7 @@ def word_shape(string): else: seq = 0 last = shape_char - if seq < 5: + if seq < 4: shape.append(shape_char) return ''.join(shape)