pub struct PageRankConfiguration {
pub damping: f32,
pub tolerance: f32,
}Expand description
Parameters for the pagerank algorithm
Fields§
§damping: f32Works as in “Bringing Order into Texts”, the TextRank paper.
score = (1 - damping) + damping * {pagerank calculation}tolerance: f32The convergence threshold.
If no single value changes more than this from one iteration to another the weights are considered successfully converged.
Implementations§
Source§impl PageRankConfiguration
impl PageRankConfiguration
Sourcepub const DEFAULT_TEXTRANK_DAMPING: f32 = 0.850000023f32
pub const DEFAULT_TEXTRANK_DAMPING: f32 = 0.850000023f32
The default damping factor used for textrank
Sourcepub const DEFAULT_TEXTRANK_TOLERANCE: f32 = 9.99999974E-5f32
pub const DEFAULT_TEXTRANK_TOLERANCE: f32 = 9.99999974E-5f32
The convergence threshold used in the textrank paper.
Trait Implementations§
Source§impl Clone for PageRankConfiguration
impl Clone for PageRankConfiguration
Source§fn clone(&self) -> PageRankConfiguration
fn clone(&self) -> PageRankConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageRankConfiguration
impl Debug for PageRankConfiguration
Auto Trait Implementations§
impl Freeze for PageRankConfiguration
impl RefUnwindSafe for PageRankConfiguration
impl Send for PageRankConfiguration
impl Sync for PageRankConfiguration
impl Unpin for PageRankConfiguration
impl UnwindSafe for PageRankConfiguration
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