Formally, an association score is some real-valued function S(q, t) where q is a query token/entity and t is another token/entity. One important notion, the ‘vicinity’ of q, we formally denote as the Context of q : The context of q are those corpus segments deemed to be ‘near’ or ‘local’ to q. For single token queries (where q is a single entity and not a logical combination of entities) , q’s context consists of all corpus segments that are ‘windows’ formed by taking words within a distance w (usually a tunable parameter) of words from an occurrence of q in the corpus. The dynamic adjacency engine generalizes this notion of context in a natural way to logical queries: the context for a logical q can be generalized as a certain set of fixed-length fragments.