1. A method for comparing a text image and a character string, the character string including a wildcard character comprising: embedding the character string without the wildcard character into a vectorial space by extracting a set of features from the character string and generating a character string representation based on the extracted character string features; embedding the text image into the vectorial space by extracting a set of features from the text image and generating a text image representation based on the extracted text image features; and computing a similarity between the text image representation and character string representation without the wildcard character by computing a similarity function of the text image representation and character string representation without the wildcard character, wherein at least one of the embedding and the computing of the compatibility is performed with a processor.