Text this: Choosing the right threshold for cross-entropy-based stopping criteria