pub struct ScorerOptions<'a> {
pub min_candidate_length: usize,
pub max_candidate_parents: usize,
pub candidate_score: CandidateScore,
pub punctuations: &'a Regex,
pub unlikely_candidates: &'a Regex,
pub likely_candidates: &'a Regex,
pub positive_candidates: &'a Regex,
pub positive_candidate_weight: f32,
pub negative_candidates: &'a Regex,
pub negative_candidate_weight: f32,
pub block_child_tags: &'a [&'a str],
}Fields§
§min_candidate_length: usizeThe minimum word length of candidates.
max_candidate_parents: usizeThe maximal number of parent nodes that will be traversed.
candidate_score: CandidateScoreDistribution of the content score among parent nodes.
punctuations: &'a Regex§unlikely_candidates: &'a Regex§likely_candidates: &'a Regex§positive_candidates: &'a Regex§positive_candidate_weight: f32§negative_candidates: &'a Regex§negative_candidate_weight: f32Trait Implementations§
Source§impl<'a> Debug for ScorerOptions<'a>
impl<'a> Debug for ScorerOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScorerOptions<'a>
impl<'a> RefUnwindSafe for ScorerOptions<'a>
impl<'a> Send for ScorerOptions<'a>
impl<'a> Sync for ScorerOptions<'a>
impl<'a> Unpin for ScorerOptions<'a>
impl<'a> UnwindSafe for ScorerOptions<'a>
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