Skip to main content

Crate web_simhash

Crate web_simhash 

Source
Expand description

Web-oriented SimHash.

This crate implements the public pieces of the Google WWW 2007 near-duplicate detection paper: weighted-feature SimHash, 64-bit Hamming comparison, and a multi-table online lookup index. It does not attempt to reproduce Google’s private crawler feature pipeline.

Structs§

FeatureHash
A pre-hashed feature.
IndexConfig
Match
SimHash64
A 64-bit SimHash fingerprint.
SimHashIndex
SimHashOptions
Fingerprint construction options.
TableSpec
WebFeatureExtractor
WebFeatureOptions
WeightedFeature
A string feature with an integer weight.

Enums§

TieBreaker
Tie behavior when a SimHash accumulator lands exactly on zero.

Constants§

DEFAULT_NEAR_DUP_DISTANCE
The Google paper’s empirically reasonable threshold for 64-bit web-page fingerprints.

Functions§

fnv1a64
Deterministic 64-bit FNV-1a hash.