nltk.BigramCollocationFinder.score_ngram

BigramCollocationFinder.score_ngram(score_fn, w1, w2)[source]

Returns the score for a given bigram using the given scoring function. Following Church and Hanks (1990), counts are scaled by a factor of 1/(window_size - 1).