1. A method comprising: determining, by a computing device, relevance intervals for corresponding terms in text associated with a content item, wherein the text includes a plurality of term strings, and wherein each relevance interval identifies one or more sections of the content item that are relevant to a corresponding term; generating a first set of nodes for a first term string from the plurality of term strings, wherein the first set of nodes includes a node for each term in the first term string, and at least one node for a term from a second term string and whose corresponding relevance interval includes the first term string; generating a second set of nodes for the second term string from the plurality of term strings, wherein the second set of nodes includes a node for each term in the second term string, and at least one node for a term from the first term string and whose corresponding relevance interval includes the second term string; and determining a plurality of connections between nodes in the first set of nodes and the second set of nodes; and using the first set of nodes, second set of nodes or plurality of connections to identify one or more segment boundaries within the content item.