I don't think so. This one reads the counts file, and creates a dictionary that contains objects and counts of them. This class is problem specific. Multinomial, takes a dictionary with counts, and creates the distribution.