Patent ID: 7315867

Claim:
A document processing apparatus comprising: block dividing means for dividing input document data into blocks in a predetermined manner according to the structure of the document data; document structuring means for structuring the document data by parsing a block into which the document data is divided by said block dividing means according to the document structure of the block, and by adding tag information to text data constituting the block, said tag information indicating an attribute of the text data; storing means for storing a sentence extraction template for determining whether or not a sentence is extracted with respect to the structure of the document data and a tag information added to text data; and sentence extraction means for controlling an extraction of the text data by comparing the tag information added to the text data by said document structuring means to said sentence extraction template stored in said storing means, further comprising: text-format determining means for determining a text format type of the input document data, wherein a document data output from said text-format determining means is input to said block dividing means; wherein said block dividing means performs a block dividing process on a section enclosed by tag information indicating formatted text when it is determined by said text-format determining means that the input document data is in a tagged text format, said block dividing process being performed when it is determined by said text-format determining means that the input document data is in an untagged text format.