The task poses a latent affinity between strings, but we can measure it only indirectly.
we can order some of the target sequences according to their affinity with a source sequence s. In this case, we train as follows: Order a sample of the target sequences according to this partial order.