Pipeline¶
- class pysyrev.Pipeline(config)[source]¶
Bases:
objectLiterature review pipeline.
Instantiate with
from_config(), then callrun().- Parameters:
config (Config)
- bib: BibDataset | None = None¶
- network: BibNetwork | None = None¶
- topic: TopicModel | None = None¶
- report: TopicReport | None = None¶
- classmethod from_config(config)[source]¶
Create a Pipeline from a YAML config path or a Config object.
- run(stages=None)[source]¶
Run one or more pipeline stages.
- Parameters:
stages (list of str, optional) – Subset of stages to run. Defaults to all configured stages in order. Valid values: ‘bib’, ‘review’, ‘bib-network’, ‘topic-model’, ‘topic-report’. Stages are always executed in canonical order regardless of the order they appear in the list. When None, only stages that have a corresponding section in the config are executed.
- Returns:
The Pipeline instance (for chaining).
- Return type:
self