mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			424 B
		
	
	
	
		
			Cython
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			424 B
		
	
	
	
		
			Cython
		
	
	
	
	
	
from libc.stdint cimport uint32_t, uint64_t
 | 
						|
from thinc.features cimport Extractor
 | 
						|
from thinc.learner cimport LinearModel
 | 
						|
 | 
						|
from .arc_eager cimport TransitionSystem
 | 
						|
 | 
						|
from ..tokens cimport Tokens, TokenC
 | 
						|
from ._state cimport State
 | 
						|
 | 
						|
 | 
						|
cdef class GreedyParser:
 | 
						|
    cdef object cfg
 | 
						|
    cdef Extractor extractor
 | 
						|
    cdef readonly LinearModel model
 | 
						|
    cdef TransitionSystem moves
 | 
						|
 | 
						|
    cpdef int parse(self, Tokens tokens) except -1
 |