Abstract
A method for generating predefined text descriptions for a trained open vocabulary machine learning model. The method includes: providing images and initial text descriptions, each associated with a region in a corresponding image and indicating what is shown in the region; ascertaining encoded dictionary text descriptions using a text encoder of the learning model; for each initial text description: ascertaining an encoded initial text description using the text encoder, selecting encoded dictionary text description(s) most similar to the encoded initial text description, inputting the image associated with the initial text description into the machine learning model and ascertaining a similarity between an output of the machine learning model and the region associated with the initial text description, and adding the text description with the greatest similarity to the set of predefined text descriptions.