A computer-implemented method of detecting account codes and displaying the detected account codes on a
graphical user interface comprising receiving, by a recommendation engine of a recommendation
system,
invoice data comprising supplier-
customer information that corresponds to a supplier-customer transaction, wherein the
invoice data comprises
invoice descriptions and invoice characters, wherein the invoice descriptions and the invoice characters define contexts and patterns; determining, by the recommendation engine, that an amount of the invoice characters is not more than a preset
threshold number of characters; in response to determining that the amount of the invoice characters is not more than the preset
threshold number of characters, filtering, by the recommendation engine, the invoice descriptions of the invoice data based on predetermined constraints to extract filtered invoice data comprising filtered description lines and to generate a training corpus for a pre-trained
Natural Language Processing (NLP) model; identifying, by classifying the filtered description lines with the pre-trained NLP model, one or more categories associated with each of the filtered description lines of the filtered invoice data; matching, by the recommendation engine, each of the identified one or more categories with one or more predefined historical categories, wherein the contexts and patterns associated with the filtered description lines are matched with predefined contexts and patterns of predefined historical invoice data that corresponds to the same supplier-
customer information; generating, by the recommendation engine, a
feature vector for the invoice data based on the matching; computing, by the recommendation engine, a categorical similarity
score for each of the identified one or more categories based on the
feature vector and an additional
feature vector, wherein the additional feature vector is based on the predefined historical invoice data; and displaying, by the recommendation engine on the
graphical user interface, a recommendation including an account code based on the computed categorical similarity
score of each of the one or more categories to map the account code to the invoice data.