changed nb multinomial to read big data files