1. A method for determining segments in a document, comprising: when the document is in a common representation format that supports discovery of internal structure of the document, parsing the document, by a parser implemented by a computer, to provide a document model; and analyzing the document model, by a structure analyzer implemented by the computer and in communication with the parser, based on at least one structure-dependent function to provide a plurality of segments.
1. A method for determining segments in a document, comprising: when the document is in a common representation format that supports discovery of internal structure of the document, parsing the document, by a parser implemented by a computer, to provide a document model; and analyzing the document model, by a structure analyzer implemented by the computer and in communication with the parser, based on at least one structure-dependent function to provide a plurality of segments. 4. The method of claim 1 , wherein analyzing the document model based on the at least one structure-dependent function further comprises: for each of a plurality of candidate templates, comparing the document model with the candidate template, by a comparator implemented by the computer and in communication with the parser, to identify matching properties between the document model and the candidate template; identifying a best-fit template of the plurality of templates, by a selection component implemented by the computer and in communication with the comparator, based on the comparison of the document model with each of the plurality of candidate templates; and identifying the plurality of segments, by a segment extraction component implemented by the computer and in communication with the selection component, based on the matching properties between the document model and the best-fit template.