Expand description
Shingling (k-gram generation) for text documents.
Converts documents into sets of overlapping subsequences (shingles/k-grams) which are then hashed for MinHash computation.
Structs§
- Hashed
Shingle Iterator - Iterator that yields hashed shingles directly.
- Shingle
Iterator - Iterator over shingles (k-grams) of a byte sequence.
- Word
Shingle Iterator - Create word-level shingles (n-grams of words).
Functions§
- get_
hashed_ shingles - Compute all hashed shingles for a document.
- get_
shingles - Compute all shingles for a document.
- normalize_
text - Normalize text by lowercasing and removing excess whitespace.