Text this: Synthetic data through combinatorial optimization of pairwise probabilities