mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Update fix for match ID vocab
This commit is contained in:
		
							parent
							
								
									d4141302b6
								
							
						
					
					
						commit
						34550ef662
					
				| 
						 | 
					@ -177,7 +177,7 @@ cdef class PhraseMatcher:
 | 
				
			||||||
        DOCS: https://spacy.io/api/phrasematcher#add
 | 
					        DOCS: https://spacy.io/api/phrasematcher#add
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = self.vocab.strings[key]
 | 
					        _ = self.vocab[key]
 | 
				
			||||||
        self._callbacks[key] = on_match
 | 
					        self._callbacks[key] = on_match
 | 
				
			||||||
        self._keywords.setdefault(key, [])
 | 
					        self._keywords.setdefault(key, [])
 | 
				
			||||||
        self._docs.setdefault(key, set())
 | 
					        self._docs.setdefault(key, set())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user