Patent ID: 7873640

Claim:
A computer-implemented method, comprising: extracting text from a document; performing semantic analysis on the text extracted from the document, wherein performing semantic analysis includes, for at least one phrase extracted from the document: (i) identifying a word frequency for each word extracted from the document, the word frequency representing how often a respective word appears in the document; (ii) identifying at least one document location of an occurrence of the phrase in the document; and (iii) determining at least one semantic term indicative of at least one theme of the document's content, the at least one theme based on the at least one document location of the occurrence of the phrase with respect to a word frequency of at least one word used in the respective phrase; providing a plurality of ranked semantic terms as a result of the semantic analysis; and associating at least one semantic term with the document, the at least one semantic term defining content to be presented with the document; wherein determining the at least one semantic term includes: identifying a pattern of placement of a first phrase throughout the document; and determining the at least one semantic term based on the pattern of placement of the first phrase with respect to a word frequency of each word in the first phrase, wherein at least one second phrase occurring at least once throughout the document uses a particular word found in the first phrase, wherein a word frequency for the particular word reflects use of the particular word by the first phrase and the second phrase; wherein identifying a pattern of placement of a first phrase throughout the document includes: identifying a type of article embodied by content of the document; obtaining an expected article structure corresponding to the article type of the document; detecting a first distance between document positions of a first adjacent pair of occurrences of the first phrase; detecting a second distance between document positions of a second adjacent pair of occurrences of the first phrase; and identifying the pattern of placement based on the first distance and the second distance with respect to the expected article structure.