mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Import and add Spanish syntax iterators
This commit is contained in:
		
							parent
							
								
									7db1a0e83e
								
							
						
					
					
						commit
						9254a3dd78
					
				| 
						 | 
				
			
			@ -5,6 +5,7 @@ from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
 | 
			
		|||
from .tag_map import TAG_MAP
 | 
			
		||||
from .stop_words import STOP_WORDS
 | 
			
		||||
from .lemmatizer import LOOKUP
 | 
			
		||||
from .syntax_iterators import SYNTAX_ITERATORS
 | 
			
		||||
 | 
			
		||||
from ..tokenizer_exceptions import BASE_EXCEPTIONS
 | 
			
		||||
from ..norm_exceptions import BASE_NORMS
 | 
			
		||||
| 
						 | 
				
			
			@ -22,6 +23,7 @@ class SpanishDefaults(Language.Defaults):
 | 
			
		|||
    tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
 | 
			
		||||
    tag_map = dict(TAG_MAP)
 | 
			
		||||
    stop_words = set(STOP_WORDS)
 | 
			
		||||
    sytax_iterators = dict(SYNTAX_ITERATORS)
 | 
			
		||||
 | 
			
		||||
    @classmethod
 | 
			
		||||
    def create_lemmatizer(cls, nlp=None):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user