pub struct DefaultTableProcessor { /* private fields */ }Expand description
Default table processor implementation
Implementations§
Source§impl DefaultTableProcessor
impl DefaultTableProcessor
Sourcepub fn new(config: TableExtractionConfig) -> RragResult<Self>
pub fn new(config: TableExtractionConfig) -> RragResult<Self>
Create new table processor
Sourcepub fn auto_parse(&self, content: &str) -> RragResult<TableParseResult>
pub fn auto_parse(&self, content: &str) -> RragResult<TableParseResult>
Auto-detect table format and parse
Sourcepub fn assess_quality(&self, table: &ExtractedTable) -> RragResult<TableQuality>
pub fn assess_quality(&self, table: &ExtractedTable) -> RragResult<TableQuality>
Assess table quality
Trait Implementations§
Source§impl TableProcessor for DefaultTableProcessor
impl TableProcessor for DefaultTableProcessor
Source§fn extract_table(&self, content: &str) -> RragResult<Vec<ExtractedTable>>
fn extract_table(&self, content: &str) -> RragResult<Vec<ExtractedTable>>
Extract table from document
Source§fn parse_structure(&self, table_html: &str) -> RragResult<ExtractedTable>
fn parse_structure(&self, table_html: &str) -> RragResult<ExtractedTable>
Parse table structure
Source§fn generate_summary(&self, table: &ExtractedTable) -> RragResult<String>
fn generate_summary(&self, table: &ExtractedTable) -> RragResult<String>
Generate table summary
Source§fn calculate_statistics(
&self,
table: &ExtractedTable,
) -> RragResult<TableStatistics>
fn calculate_statistics( &self, table: &ExtractedTable, ) -> RragResult<TableStatistics>
Calculate statistics
Auto Trait Implementations§
impl Freeze for DefaultTableProcessor
impl RefUnwindSafe for DefaultTableProcessor
impl Send for DefaultTableProcessor
impl Sync for DefaultTableProcessor
impl Unpin for DefaultTableProcessor
impl UnwindSafe for DefaultTableProcessor
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