1. A method comprising: receiving, at a computing device, text of a content item, the text including a plurality of term strings, each term string including one or more terms; determining a set of relevance intervals for a corresponding set of terms in the text, the relevance intervals each identifying one or more sections of the content item that are relevant to a corresponding term; and for a first term string of the plurality of term strings, determining a first set of nodes based on the set of relevance intervals, and using the nodes to identify one or more segment boundaries within the content item.