pub struct ParsingConfig {Show 13 fields
pub document_type: DocumentType,
pub section_and_hierarchy: SectionAndHierarchyConfig,
pub spatial_clustering: SpatialClusteringConfig,
pub section_patterns: Vec<String>,
pub include_raw_tika: bool,
pub pipeline: PipelineConfig,
pub list_detection: ListDetectionConfig,
pub size_enforcer: SizeEnforcerConfig,
pub minimal_parse: bool,
pub section_detection_v2: SectionDetectionV2Config,
pub node_type_clustering: NodeTypeClusteringConfig,
pub graph_sanity: GraphSanityConfig,
pub dump_analytics: bool,
}Fields§
§document_type: DocumentType§section_and_hierarchy: SectionAndHierarchyConfig§spatial_clustering: SpatialClusteringConfig§section_patterns: Vec<String>§include_raw_tika: boolInclude raw Tika XML/HTML output in graph metadata for debugging
pipeline: PipelineConfigPipeline configuration - defines which rules to run and in what order
list_detection: ListDetectionConfigList detection configuration
size_enforcer: SizeEnforcerConfigSize enforcement configuration
minimal_parse: boolMinimal parse mode - bypasses all rule processing and returns only base conversion
section_detection_v2: SectionDetectionV2ConfigConfiguration for the V2 section detection rule (Block 03).
Uses #[serde(default)] so existing YAML configs without this key still deserialize.
node_type_clustering: NodeTypeClusteringConfigConfiguration for the NodeTypeClustering rule (CR-29; Block 05b — renamed
from ParagraphClustering once Section started flowing through the same rule).
Uses #[serde(default)] so existing YAML configs without this key still
deserialize. Also accepts the legacy paragraph_clustering: block via the
migration shim on NodeTypeClusteringConfig deserialization (see below).
graph_sanity: GraphSanityConfigConfiguration for the graph sanity-check-and-correction pipe (CR-28). Runs post-graph-build; defaults are safe (enabled with all invariants in check + correct mode).
dump_analytics: boolWhen true, the analytics pre-pass writes one JSON file per stat kind to
{cache_dir}/stat/<stat_name>/<pdf_hash>.json after finalization. This is
a sidecar for offline tooling — not a pipeline cache (output is not read
back). Default true for development; flip off in production where the
extra writes are unwanted.
Implementations§
Source§impl ParsingConfig
impl ParsingConfig
Sourcepub fn load_from_file(path: &str) -> Result<ParsingConfig, Error>
pub fn load_from_file(path: &str) -> Result<ParsingConfig, Error>
Load config from file path (functional approach)
Sourcepub fn load_with_fallback(path: Option<&str>) -> ParsingConfig
pub fn load_with_fallback(path: Option<&str>) -> ParsingConfig
Load config with fallback to default
Trait Implementations§
Source§impl Clone for ParsingConfig
impl Clone for ParsingConfig
Source§fn clone(&self) -> ParsingConfig
fn clone(&self) -> ParsingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more