The semantic distances used in this section rely on
sentence encoders, computational models that convert sequences of tokens into vector representations.
They can be trained on a variety of tasks, from predicting the entailment relation between a pair of sentences [1]} to reconstructing the context of a passage [2]}.
These tasks require capturing the meaning of the corresponding texts.
<FIGURE>