mf sampling for text