Patent ID: 11881041
Assignee: BANK OF AMERICA CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. An apparatus, comprising:
a memory configured to store:
an optical character recognition (OCR) algorithm;
a first machine learning algorithm trained to extract information from a set of text; and
a dictionary of words; and

a hardware processor communicatively coupled to the memory, the hardware processor configured to:
receive a first image of a page of a physical document;
convert, by executing the OCR algorithm, the first image into a first set of text comprising characters and whitespaces;
identify a plurality of tokens within the first set of text, each token of the plurality of tokens comprising one or more contiguous characters, wherein the one or more contiguous characters are preceded by whitespace and followed by whitespace within the first set of text;
for each token of the plurality of tokens, remove any valid punctuation from the token, wherein the valid punctuation comprises at least one of:
one or more contiguous punctuation marks at a beginning of the token; and
one or more contiguous punctuation marks at an end of the token;

identify a set of invalid tokens from the plurality of tokens, wherein identifying the set of invalid tokens comprises removing each token of the plurality of tokens that corresponds to a word of the dictionary of words;
determine, based on a total number of invalid tokens of the set of invalid tokens and a total number of tokens of the plurality of tokens, a total number of valid tokens of the plurality of tokens;
calculate, based on a ratio of the total number of valid tokens to the total number of tokens of the plurality of tokens, a score for the first set of text;
determine that the score for the first set of text is greater than a threshold; and
in response to determining that the score for the first set of text is greater than the threshold:
apply the first machine learning algorithm to the first set of text to extract a first set of information from the first set of text; and
store at least one of the first set of information and information generated using the first set of information in a database.