pub struct ListDetectionConfig {
pub enabled: bool,
pub sequence_lookahead_elements: usize,
pub sequence_boundary_extension: usize,
pub y_tolerance: f32,
pub bullet_patterns: Vec<String>,
pub numbered_patterns: Vec<String>,
pub create_list_containers: bool,
pub preserve_list_items: bool,
pub max_lookahead_elements: usize,
pub last_item_boundary_gap: f32,
pub validation: ListValidationConfig,
}Fields§
§enabled: boolWhether list detection is enabled
sequence_lookahead_elements: usizePhase 1: Sequence Detection (NEW) How far to look for next marker (in elements)
sequence_boundary_extension: usizeElements past last marker to include in sequence boundary
y_tolerance: f32Phase 2: Content Classification Y-coordinate tolerance for considering elements on the same line (in points)
bullet_patterns: Vec<String>List item patterns Bullet point patterns to detect
numbered_patterns: Vec<String>Numbered list patterns (regex)
create_list_containers: boolList grouping behavior Whether to create List container nodes for consecutive list items
preserve_list_items: boolWhether to preserve individual ListItem nodes within List containers
max_lookahead_elements: usizeMaximum number of elements to look ahead for list item continuation
last_item_boundary_gap: f32Last list item boundary detection Y-gap threshold (in points) for detecting spatial disconnects in last list items TODO: OPTIMIZATION_DESIGN phase - fine-tune this value based on document types
validation: ListValidationConfigPhase 2.5: List Validation (NEW) Configuration for validating detected lists to eliminate false positives
Trait Implementations§
Source§impl Clone for ListDetectionConfig
impl Clone for ListDetectionConfig
Source§fn clone(&self) -> ListDetectionConfig
fn clone(&self) -> ListDetectionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more