mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Don't raise in Pipe.initialize if not implemented
This commit is contained in:
		
							parent
							
								
									7d04ba20c0
								
							
						
					
					
						commit
						b799af16de
					
				|  | @ -36,7 +36,7 @@ cdef class Pipe: | |||
|     @property | ||||
|     def labels(self) -> Optional[Tuple[str]]: | ||||
|         return [] | ||||
|      | ||||
| 
 | ||||
|     @property | ||||
|     def label_data(self): | ||||
|         """Optional JSON-serializable data that would be sufficient to recreate | ||||
|  | @ -207,7 +207,7 @@ cdef class Pipe: | |||
| 
 | ||||
|         DOCS: https://nightly.spacy.io/api/pipe#initialize | ||||
|         """ | ||||
|         raise NotImplementedError(Errors.E931.format(method="initialize", name=self.name)) | ||||
|         pass | ||||
| 
 | ||||
|     def _ensure_examples(self, get_examples): | ||||
|         if get_examples is None or not hasattr(get_examples, "__call__"): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user