mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* 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
 |