alis.feature_extraction.k_shingles#

alis.feature_extraction.k_shingles(text, k)[source]#

Return all the k-shingles of the text

Parameters
textstr

String of text in which shingles are to be extracted

kint

Shingle size

Returns
shinglesiterable

An iterable of all k-shingles in the input text