* Add length cap to word shape feature

This commit is contained in:
Matthew Honnibal 2015-07-20 12:06:59 +02:00
parent 128b6d9714
commit 06639dc497
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ cpdef bint like_number(unicode string):
cpdef unicode word_shape(unicode string):
if len(string) >= 100:
return 'LONG'
length = len(string)
shape = []
last = ""