1. A method for segmenting a document comprising: generating a visual model of the document; identifying a hierarchical structure of the document based on the visual model; and segmenting the document based on the hierarchical structure and the visual model of the document.