Since text coherence is a relative concept rather than a binary distinction, in both tasks, we formulate the problem as pairwise preference ranking.
given a set of texts with different degrees of coherence, we train a ranker to prefer the more coherent text over the less coherent one.