pub struct Summary {
pub sentences: Vec<String>,
pub scores: Vec<f32>,
}Expand description
The output of summarize_community: picked sentences in MMR
order (first-picked = highest effective score) plus a
parallel-indexed score vector for callers that want the numbers
without the strings.
Fields§
§sentences: Vec<String>Picked sentences in MMR selection order.
scores: Vec<f32>Scores aligned with Summary::sentences.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn items(&self) -> Vec<SummaryItem>
pub fn items(&self) -> Vec<SummaryItem>
Convenience: zip the parallel vectors into SummaryItems.
Trait Implementations§
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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