Stav dette: Graph cut based inference with co-occurrence statistics