7. The method of claim 1 , wherein generating a set of sequential features further comprises: determining a plurality of sets of ordered connected components based on the document image fragment, wherein each connected component comprises a set of pixels corresponding to a glyph in the document image fragment; determining, for each connected component, a set of similarity values between the connected component and a set of equivalent connected components, wherein each equivalent component represents at least a first glyph and is associated with a categorical value; associating a categorical value with each connected component based on the set of similarity values; and generating the set of sequential features, wherein each sequential feature comprises the categorical value associated with an ordered connected component.
7. The method of claim 1 , wherein generating a set of sequential features further comprises: determining a plurality of sets of ordered connected components based on the document image fragment, wherein each connected component comprises a set of pixels corresponding to a glyph in the document image fragment; determining, for each connected component, a set of similarity values between the connected component and a set of equivalent connected components, wherein each equivalent component represents at least a first glyph and is associated with a categorical value; associating a categorical value with each connected component based on the set of similarity values; and generating the set of sequential features, wherein each sequential feature comprises the categorical value associated with an ordered connected component. 8. The method of claim 7 , wherein determining, for each connected component, a set of similarity values between the connected component and a set of equivalent connected components comprises: modifying the connected component by removing one or more pixels above a specified intensity value from the set of pixels using a morphological thinning algorithm.