A document may be segmented based on a visual model of the document. The
visual model is determined according to an amount of visual white space
or gaps that are in the document. In one implementation, the visual model
is used to identify a hierarchical structure of the document, which may
then be used to segment the document.