Add utility class for bags of words.