mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
b7e3018d97
* Recalculate alignment if tokenization differs * Refactor cached alignment data
10 lines
225 B
Cython
10 lines
225 B
Cython
from ..tokens.doc cimport Doc
|
|
|
|
|
|
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
|