Text this: Minimization on submodular flows