(self, config: Config)
| 22 | |
| 23 | class Pipeline: |
| 24 | def __init__(self, config: Config): |
| 25 | self.config = config |
| 26 | self._obj_map = instantiate_class_from_config(config) |
| 27 | self.pipeline_settings = self._obj_map["pipeline_settings"][0] |
| 28 | self.semantic_graph_context_generator = [ |
| 29 | self._obj_map["semantic_graph_context_generator"][i] |
| 30 | for i in range(len(self._obj_map["semantic_graph_context_generator"])) |
| 31 | ] |
| 32 | self.gnn_heads = [self._obj_map["gnn_heads"][i] for i in range(len(self._obj_map["gnn_heads"]))] |
| 33 | self.topic_model = self._obj_map["topic_model"][0] |
| 34 | |
| 35 | @classmethod |
| 36 | def from_config(cls, config: Config): |
nothing calls this directly
no test coverage detected