sentence1: the relevance score is calculated as the cosine similarity between two images that are embedded into a shared latent space , which are learned via training a ranking model .
sentence2: the semantic relevance score is determined by using a deep structured semantic model to compute the distance between two units in a compressed embedding space .