pub struct DefaultLayoutAnalyzer { /* private fields */ }Expand description
Default layout analyzer implementation
Implementations§
Source§impl DefaultLayoutAnalyzer
impl DefaultLayoutAnalyzer
Sourcepub fn new(config: LayoutAnalysisConfig) -> RragResult<Self>
pub fn new(config: LayoutAnalysisConfig) -> RragResult<Self>
Create new layout analyzer
Sourcepub async fn analyze_layout_comprehensive(
&self,
document_path: &Path,
) -> RragResult<LayoutAnalysisResult>
pub async fn analyze_layout_comprehensive( &self, document_path: &Path, ) -> RragResult<LayoutAnalysisResult>
Perform comprehensive layout analysis
Trait Implementations§
Source§impl LayoutAnalyzer for DefaultLayoutAnalyzer
impl LayoutAnalyzer for DefaultLayoutAnalyzer
Source§fn analyze_layout(&self, document_path: &Path) -> RragResult<DocumentLayout>
fn analyze_layout(&self, document_path: &Path) -> RragResult<DocumentLayout>
Analyze document layout
Source§fn detect_sections(&self, content: &str) -> RragResult<Vec<DocumentSection>>
fn detect_sections(&self, content: &str) -> RragResult<Vec<DocumentSection>>
Detect sections
Source§fn extract_reading_order(
&self,
layout: &DocumentLayout,
) -> RragResult<Vec<String>>
fn extract_reading_order( &self, layout: &DocumentLayout, ) -> RragResult<Vec<String>>
Extract reading order
Auto Trait Implementations§
impl Freeze for DefaultLayoutAnalyzer
impl RefUnwindSafe for DefaultLayoutAnalyzer
impl Send for DefaultLayoutAnalyzer
impl Sync for DefaultLayoutAnalyzer
impl Unpin for DefaultLayoutAnalyzer
impl UnwindSafe for DefaultLayoutAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more