def get_ngrams(text, n=3):
    onegrams = text.split()
    if n == 1:
        return onegrams
    if len(onegrams) < n:
        return text
    return [" ".join(onegrams[i:i+n]) for i in range(0, n+1-len(onegrams))]
dataset/ETHPy150Open ekzhu/datasketch/benchmark/lsh_benchmark.py/get_ngrams/swapped operands of `-`