/significance

Calculate significance of cooccurring words

Primary LanguageRuby

Significance

Calculate significance of cooccurring words

  Significance.calculate(a, b, k, n)

where a is equal to the frequency of the first word in the set of documents, b is equal to the frequency of the second word in the set of documents, k is equal to the frequency of the first and second word occurring together in the set of documents and n is equal to the number of documents.