liveBook · Manning

Semantic relatedness

As explained in AI-Powered Search

Semantic relatedness is a normalized statistical measure of how strongly terms are associated through their distributions across document sets.

Semantic relatedness measures how strongly terms are associated by comparing their distributions across document sets. A term is related to a foreground query when it appears there more often than in an unrelated background collection. Common terms such as “the” are discounted despite frequent co-occurrence. section 5.4.4

A relatedness calculation typically uses:

  • A foreground set containing documents matching the primary query. section 5.4.4
  • A background set representing the whole collection or a random sample. section 5.4.4
  • A normalized score, commonly mapped from −1.0 to 1.0, where 0.0 indicates no relation. section 5.4.4

Pain and ibuprofen

If the foreground set contains documents matching “pain,” “ibuprofen” receives a high score when it occurs there more often than in random documents. The same comparison can identify terms related to “advil,” including “motrin,” “aleve,” and “naproxen.” section 5.4.4

How AI-Powered Search covers it

How deep it goes
Explains foreground/background distributions, probability comparison, and sigmoid normalization without deriving the full equation.
Examples
Uses pain–ibuprofen comparisons and an advil traversal ranked with related terms such as motrin, aleve, and naproxen.
What it assumes
Assumes queries, document collections, co-occurrence, and basic probability while defining foreground and background sets explicitly.
What you can do after
Apply it via relatedness scoring to rank candidate terms against foreground and background document sets.
How it connects
Connects foreground queries, background queries, document distributions, co-occurrence, semantic similarity, and knowledge graphs.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.