mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Add SP tag to tag map if missing
This commit is contained in:
		
							parent
							
								
									c4614c02a2
								
							
						
					
					
						commit
						7b2ede783d
					
				| 
						 | 
				
			
			@ -281,6 +281,8 @@ class NeuralTagger(object):
 | 
			
		|||
                        new_tag_map[tag] = orig_tag_map[tag]
 | 
			
		||||
                    else:
 | 
			
		||||
                        new_tag_map[tag] = {POS: X}
 | 
			
		||||
        if 'SP' not in new_tag_map:
 | 
			
		||||
            new_tag_map['SP'] = orig_tag_map.get('SP', {POS: X})
 | 
			
		||||
        cdef Vocab vocab = self.vocab
 | 
			
		||||
        if new_tag_map:
 | 
			
		||||
            vocab.morphology = Morphology(vocab.strings, new_tag_map,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user