コード例 #1
0
 def for_component(self,
                   index: int,
                   defaults: Any = None) -> Dict[Text, Any]:
     return component_config_from_pipeline(index, self.get("pipeline", []),
                                           defaults)
コード例 #2
0
ファイル: model.py プロジェクト: kushal1212/Demo_Bot
 def for_component(self, index, defaults=None):
     return component_config_from_pipeline(index, self.get("pipeline", []), defaults)
コード例 #3
0
 def for_component(self,
                   index: int,
                   defaults: Any = None) -> Dict[Text, Any]:
     """Returns the configuration of the component based on index."""
     return component_config_from_pipeline(index, self.get("pipeline", []),
                                           defaults)