pub struct AdaptiveOptions {
pub coverage_threshold: f64,
pub evidence_per_term: usize,
pub patience: usize,
pub min_gain: f64,
}Expand description
自适应爬取的停止条件(pagesift 扩展 adaptive)。
每个查询词的“证据“是包含它的、互不相同的相关段落数;覆盖度是各词
min(1, 证据 / evidencePerTerm) 的平均值。覆盖度达到 coverageThreshold 时停止
(coverage_reached);或者连续 patience 页带来的新相关内容都少于已收集的 minGain
时停止(saturated)。
Fields§
§coverage_threshold: f64§evidence_per_term: usize§patience: usize§min_gain: f64Trait Implementations§
Source§impl Clone for AdaptiveOptions
impl Clone for AdaptiveOptions
Source§impl Debug for AdaptiveOptions
impl Debug for AdaptiveOptions
Source§impl Default for AdaptiveOptions
impl Default for AdaptiveOptions
Source§impl<'de> Deserialize<'de> for AdaptiveOptionswhere
AdaptiveOptions: Default,
impl<'de> Deserialize<'de> for AdaptiveOptionswhere
AdaptiveOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdaptiveOptions
impl PartialEq for AdaptiveOptions
Source§impl Serialize for AdaptiveOptions
impl Serialize for AdaptiveOptions
impl StructuralPartialEq for AdaptiveOptions
Auto Trait Implementations§
impl Freeze for AdaptiveOptions
impl RefUnwindSafe for AdaptiveOptions
impl Send for AdaptiveOptions
impl Sync for AdaptiveOptions
impl Unpin for AdaptiveOptions
impl UnsafeUnpin for AdaptiveOptions
impl UnwindSafe for AdaptiveOptions
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