pub struct ResultAggregator { /* private fields */ }
Expand description
Result aggregator for combining extractions from multiple chunks
Implementations§
Source§impl ResultAggregator
impl ResultAggregator
Sourcepub fn with_settings(similarity_threshold: f32, merge_overlaps: bool) -> Self
pub fn with_settings(similarity_threshold: f32, merge_overlaps: bool) -> Self
Create a result aggregator with custom settings
Sourcepub fn aggregate_chunk_results(
&self,
chunk_results: Vec<ChunkResult>,
original_text: String,
document_id: Option<String>,
) -> LangExtractResult<AnnotatedDocument>
pub fn aggregate_chunk_results( &self, chunk_results: Vec<ChunkResult>, original_text: String, document_id: Option<String>, ) -> LangExtractResult<AnnotatedDocument>
Aggregate results from multiple chunks into a single annotated document
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultAggregator
impl RefUnwindSafe for ResultAggregator
impl Send for ResultAggregator
impl Sync for ResultAggregator
impl Unpin for ResultAggregator
impl UnwindSafe for ResultAggregator
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