CPC G06F 16/90328 (2019.01) [G06F 16/9038 (2019.01); G06F 16/906 (2019.01); G06F 18/2413 (2023.01)] | 16 Claims |
1. A method comprising:
training a compact model from a large language model using contrastive learning, wherein the contrastive learning comprises inputting domain-specific training data comprising sentences extracted from design templates to the large language model to generate, for each extracted sentence, a domain-specific sentence embedding;
inputting a font category to the compact model to generate a font tag embedding;
inputting a search query to the compact model to generate a query embedding;
determining a distance measure between the query embedding and the font tag embedding; and
responsive to the distance measure satisfying a predetermined threshold, providing the font category for the font tag embedding as a suggested font category.
|