1. A method for identifying a table of contents in a document, the method comprising: extracting text fragments from the document; identifying (i) a contiguous group of the text fragments as table of content entries and (ii) a different group of the text fragments as linked text fragments linked with corresponding table of content entries; and during the identifying, reducing a number of text fragments that are candidates for identification as linked text fragments based on at least one reduction criterion; wherein a small portion of the identified table of content entries comprise holes that do not have associated linked text fragments, a ratio of the number of the holes to the number of linked table of content entries being a user-selectable parameter that is less than about 0.2.
2. The method as set forth in claim 1 , wherein the reducing comprises: comparing text fragments with a regular expression, text fragments that one of (i) match, or (ii) do not match, the regular expression being excluded as candidates for identification as linked text fragments.