Pointwise Mutual Information › PMI for Broader Distributional Semantics
Language AI HandbookAll chapters Pointwise Mutual Information › PMI for Broader Distributional SemanticsOne section · Sections in this chapter10 / 13 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
PMI is not limited to word-word co-occurrence. The same formula applies whenever you want to measure the association between any two categorical variables from count data, and this generality has made it useful across a wide range of NLP applications.
Word-Document PMI
In information retrieval, PMI is used to weight word-document associations. Instead of TF-IDF (which combines term frequency with inverse document frequency), you can compute PMI between each word and each document:
where is the probability of observing word in document , is the overall word frequency, and is the document's relative length. High PMI for (word, document) pairs identifies words that are distinctive of specific documents, similar in spirit to TF-IDF but derived from a different theoretical foundation.
Word-Feature PMI for NER
Named entity recognition and relation extraction systems have historically used PMI to identify features that are distinctive of entity classes. For example, you might compute PMI between each word and the label "PERSON" based on annotated training data. Words with high PMI for "PERSON" (like "Mr.," "Ms.," capitalized names) become strong features for the classifier, while words with PMI near zero are not discriminative for that class.
Semantic Orientation for Sentiment Analysis
Turney (2002) used PMI to compute the semantic orientation of adjectives for sentiment analysis, in a method that predates the deep learning era but remains influential. The idea is to compute the PMI between each adjective and two reference words representing positive sentiment ("excellent") and negative sentiment ("poor"), then take the difference:
where:
- : the semantic orientation score for word
- : how strongly associates with positive sentiment
- : how strongly associates with negative sentiment
An adjective with positive SO ("wonderful," "brilliant") co-occurs more strongly with "excellent" than with "poor." An adjective with negative SO ("terrible," "mediocre") has the reverse pattern. This simple approach achieved surprisingly strong performance on review classification tasks. This shows that PMI can capture meaningful semantic properties without any supervised training.