mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	* Add import to tokens.pyx from weird Cython compiler issue with casting from memory views
This commit is contained in:
		
							parent
							
								
									f01b3d043e
								
							
						
					
					
						commit
						89ae218b75
					
				| 
						 | 
					@ -17,7 +17,8 @@ from .spans import Span
 | 
				
			||||||
from .structs cimport UniStr
 | 
					from .structs cimport UniStr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from unidecode import unidecode
 | 
					from unidecode import unidecode
 | 
				
			||||||
 | 
					# Compiler crashes on memory view coercion without this. Should report bug.
 | 
				
			||||||
 | 
					from cython.view cimport array as cvarray
 | 
				
			||||||
cimport numpy as np
 | 
					cimport numpy as np
 | 
				
			||||||
np.import_array()
 | 
					np.import_array()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user