mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
2abb4ba9db
* Dirty trick to fast-track alignment cache * Improve alignment cache check * Fix header * Fix align cache * Fix align logic
13 lines
327 B
Cython
13 lines
327 B
Cython
from ..tokens.doc cimport Doc
|
|
from libc.stdint cimport uint64_t
|
|
|
|
|
|
cdef class Example:
|
|
cdef readonly Doc x
|
|
cdef readonly Doc y
|
|
cdef readonly object _cached_alignment
|
|
cdef readonly object _cached_words_x
|
|
cdef readonly object _cached_words_y
|
|
cdef readonly uint64_t _x_sig
|
|
cdef readonly uint64_t _y_sig
|