Skip to main content

Module simhash

Module simhash 

Source
Expand description

SimHash algorithm and sliding window utilities.

Implements the SimHash similarity-preserving hash and sliding window n-gram generation, ported from iscc-core simhash.py and utils.py.

Functionsยง

alg_simhash
Compute a SimHash from a sequence of equal-length hash digests.
sliding_window
Generate sliding window n-grams from a string.