AI engineering glossary · NLP embeddings

What is co-occurrence matrix?

Co-occurrence matrix (also called Word co-occurrence matrix): A table counting how often each pair of words appears near each other, within a window of a few words or in the same document. Rows can act as simple word vectors and are the raw material for methods such as GloVe.

Level: intermediateTopic: NLP embeddings

Co-occurrence matrix: an example

If "chai" appears within two words of "hot" 340 times, the cell (chai, hot) contains 340.

Related terms

More NLP embeddings terms

Where you learn it

Co-occurrence matrix is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.