RuntimeCorpus#
- class scikitplot.corpus.RuntimeCorpus(plan, pipeline, storage=None, index_config=None, retrieval_config=None, export_format=None, policy=<factory>, _owns_storage=False)[source]#
Materialized operational view of a validated
CorpusPlan.The runtime delegates content processing to
CorpusPipeline, persistence toStorageBase, dense/sparse search toRetrievalIndex, and serialization toexport_documents. It owns orchestration and lifecycle only.- Parameters:
plan (CorpusPlan)
pipeline (Any)
storage (Any)
index_config (Any)
retrieval_config (Any)
export_format (Any)
policy (RuntimePolicy)
_owns_storage (bool)
- export(output_path, *, format=None, **kwargs)[source]#
Export the currently committed documents using the plan’s export format.
- property index: Any#
Built
RetrievalIndex, orNonebefore a successful run.
- plan: CorpusPlan[source]#
- policy: RuntimePolicy[source]#
- run(source=None)[source]#
Process the plan source and commit storage/index state once.
Use
addfor subsequent sources. Requiring an explicitaddavoids a secondrunsilently mixing new data with storage/index state left by the first generation.