mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
* Refine word_shape feature, by trimming the max sequence length
This commit is contained in:
parent
b4454cf036
commit
3cab1d9a29
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user