15. A device for forming a structured document from an unstructured input document, the device comprising: memory storing program logic; and a processor in electrical communication with the memory and executing the program logic to: extract a plurality of tokens from the input document, each token of the plurality of tokens having a visual style; produce, for each token of the plurality of tokens, a corresponding first probability distribution across a plurality of classes each being related to information conveyed by the tokens; produce, for each token of the plurality of tokens, a corresponding second probability distribution across the plurality of classes, the corresponding second probability distribution being based at least in part on the class, of the plurality of classes, in which the token's surrounding tokens in context are most likely to be classified; and produce, for each token of the plurality of tokens, a corresponding third probability distribution across the plurality of classes, the corresponding third probability distribution being based at least in part on the corresponding visual style of the token; and classify each token of the plurality of tokens into one of the plurality of classes as a function of one or more of the first probability distribution, the second probability distribution, and the third probability distribution, wherein to classify each token, the processor executes the program logic to determine, for each class of the plurality of classes, a relative likelihood (RL) of token belonging to the class, by calculating the RL from the token's corresponding second probability distribution for the class (C) and the token's corresponding third probability distribution for the class (S) according to the function: RL=C*S 4 .
15. A device for forming a structured document from an unstructured input document, the device comprising: memory storing program logic; and a processor in electrical communication with the memory and executing the program logic to: extract a plurality of tokens from the input document, each token of the plurality of tokens having a visual style; produce, for each token of the plurality of tokens, a corresponding first probability distribution across a plurality of classes each being related to information conveyed by the tokens; produce, for each token of the plurality of tokens, a corresponding second probability distribution across the plurality of classes, the corresponding second probability distribution being based at least in part on the class, of the plurality of classes, in which the token's surrounding tokens in context are most likely to be classified; and produce, for each token of the plurality of tokens, a corresponding third probability distribution across the plurality of classes, the corresponding third probability distribution being based at least in part on the corresponding visual style of the token; and classify each token of the plurality of tokens into one of the plurality of classes as a function of one or more of the first probability distribution, the second probability distribution, and the third probability distribution, wherein to classify each token, the processor executes the program logic to determine, for each class of the plurality of classes, a relative likelihood (RL) of token belonging to the class, by calculating the RL from the token's corresponding second probability distribution for the class (C) and the token's corresponding third probability distribution for the class (S) according to the function: RL=C*S 4 . 16. The device of claim 15 , wherein the second probability distribution of a corresponding token of the plurality of tokens is further based on the first probability distribution of the corresponding token.