mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Work around set order in Language.disabled
This commit is contained in:
		
							parent
							
								
									66d76f5126
								
							
						
					
					
						commit
						6520d1a1df
					
				| 
						 | 
					@ -258,7 +258,9 @@ class Language:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        RETURNS (List[str]): The disabled components.
 | 
					        RETURNS (List[str]): The disabled components.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        return list(self._disabled)
 | 
					        # Make sure the disabled components are returned in the order they
 | 
				
			||||||
 | 
					        # appear in the pipeline (which isn't guaranteed by the set)
 | 
				
			||||||
 | 
					        return [name for name, _ in self.components if name in self._disabled]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def factory_names(self) -> List[str]:
 | 
					    def factory_names(self) -> List[str]:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user