Large scale (semi-ensemble) multilabel text classification via an approximation of the max flow problem