| 2 | |
| 3 | |
| 4 | class Config: |
| 5 | def __init__(self, pipeline_settings, semantic_graph_context_generator, gnn_heads, topic_model): |
| 6 | self.semantic_graph_context_generator = semantic_graph_context_generator |
| 7 | self.gnn_heads = gnn_heads |
| 8 | self.topic_model = topic_model |
| 9 | self.pipeline_settings = pipeline_settings |
| 10 | |
| 11 | @classmethod |
| 12 | def from_yaml(cls, yaml_path): |
| 13 | with open(yaml_path, "r") as f: |
| 14 | config_dict = yaml.safe_load(f) |
| 15 | return cls(**config_dict) |
| 16 | |
| 17 | |
| 18 | class PipelineSettings: |
nothing calls this directly
no outgoing calls
no test coverage detected