We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74d24f7 + 220fc43 commit 15b76eaCopy full SHA for 15b76ea
1 file changed
src/licensedcode/tokenize.py
@@ -336,6 +336,7 @@ def select_ngrams(ngrams, with_pos=False):
336
>>> list(select_ngrams(x for x in [(2, 1, 3), (1, 1, 3), (5, 1, 3), (2, 6, 1), (7, 3, 4)]))
337
[(2, 1, 3), (1, 1, 3), (5, 1, 3), (2, 6, 1), (7, 3, 4)]
338
"""
339
+ ngram = None
340
last = None
341
for pos, ngram in enumerate(ngrams):
342
# FIXME: use a proper hash
0 commit comments