Patent ID: 7792369

Claim:
A non-transitory computer-readable recording medium that stores therein a form processing program that causes a computer to recognize a logical structure in a form document, using a database storing data on a hierarchical logical structure of logical elements that logically make up the form document, appearance frequency of a character string to be the logical elements, and frequency regarding relative position between the logical elements on the form document, the form processing program causing the computer to execute: extracting a character string as a word candidate from among character strings in the form document based on correspondence with the character strings to be the logical elements stored in the database; calculating an emission probability of the word candidate appearing as a logical element based on the appearance frequency; calculating a transition probability that is a probability of a word candidate of one logical element and a word candidate of another logical element appearing in combination, based on the frequency regarding relative position; and calculating credibility that the word candidate of the logical element is a character string corresponding to the logical element, based on the emission probability and the transition probability.