mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			458 B
		
	
	
	
		
			Cython
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			458 B
		
	
	
	
		
			Cython
		
	
	
	
	
	
| from cymem.cymem cimport Pool
 | |
| 
 | |
| from thinc.typedefs cimport weight_t
 | |
| 
 | |
| from .stateclass cimport StateClass
 | |
| from ..typedefs cimport attr_t
 | |
| 
 | |
| from .transition_system cimport TransitionSystem, Transition
 | |
| from ..gold cimport GoldParseC
 | |
| 
 | |
| 
 | |
| cdef class ArcEager(TransitionSystem):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| cdef weight_t push_cost(StateClass stcls, const GoldParseC* gold, int target) nogil
 | |
| cdef weight_t arc_cost(StateClass stcls, const GoldParseC* gold, int head, int child) nogil
 | |
| 
 |