mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 11:20:19 +03:00
Correction
This commit is contained in:
parent
13e417e8d1
commit
5d151b4abe
|
@ -1790,10 +1790,10 @@ cdef class Doc:
|
||||||
hashes = numpy.empty((num_toks, ss_h_end), dtype="int64")
|
hashes = numpy.empty((num_toks, ss_h_end), dtype="int64")
|
||||||
|
|
||||||
# Determine the maximum possible lengths of the affixes to work out how big the buffers need to be
|
# Determine the maximum possible lengths of the affixes to work out how big the buffers need to be
|
||||||
cdef int p_max_l = max(p_lengths) if p_h_num > 0 else 0
|
cdef int p_max_l = p_lengths[-1] if p_h_num > 0 else 0
|
||||||
cdef int s_max_l = max(s_lengths) if s_h_num > 0 else 0
|
cdef int s_max_l = s_lengths[-1] if s_h_num > 0 else 0
|
||||||
cdef int ps_max_l = max(ps_lengths) if ps_h_num > 0 else 0
|
cdef int ps_max_l = ps_lengths[-1] if ps_h_num > 0 else 0
|
||||||
cdef int ss_max_l = max(ss_lengths) if ss_h_num > 0 else 0
|
cdef int ss_max_l = ss_lengths[-1] if ss_h_num > 0 else 0
|
||||||
|
|
||||||
# Define / allocate buffers
|
# Define / allocate buffers
|
||||||
cdef int aff_l = p_max_l + s_max_l
|
cdef int aff_l = p_max_l + s_max_l
|
||||||
|
|
Loading…
Reference in New Issue
Block a user