mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +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
 |