@staticmethod
    def _ngram_freqdist(words, n):
        return FreqDist(tuple(words[i:i + n]) for i in range(len(words) - 1))
dataset/ETHPy150Open nltk/nltk/nltk/collocations.py/AbstractCollocationFinder._ngram_freqdist/original