This function calculates the PMI for collocations in a given text data.
Usage
PMI(x)
Value
Returns a data frame where each row represents a unique keyword
(collocation) in the input data. The data frame contains columns
such as 'keyword', representing the keyword, and 'pmi', representing
the PMI score of that keyword. Higher PMI scores indicate a stronger
association between the components of the collocation within the corpus.