mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-28 06:31:12 +03:00 
			
		
		
		
	include span_ruler for default warning filter (#11333)
This commit is contained in:
		
							parent
							
								
									db7b9938a4
								
							
						
					
					
						commit
						cab263791f
					
				|  | @ -16,8 +16,8 @@ def setup_default_warnings(): | |||
|     filter_warning("ignore", error_msg="numpy.dtype size changed")  # noqa | ||||
|     filter_warning("ignore", error_msg="numpy.ufunc size changed")  # noqa | ||||
| 
 | ||||
|     # warn about entity_ruler & matcher having no patterns only once | ||||
|     for pipe in ["matcher", "entity_ruler"]: | ||||
|     # warn about entity_ruler, span_ruler & matcher having no patterns only once | ||||
|     for pipe in ["matcher", "entity_ruler", "span_ruler"]: | ||||
|         filter_warning("once", error_msg=Warnings.W036.format(name=pipe)) | ||||
| 
 | ||||
|     # warn once about lemmatizer without required POS | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user