fixed sampling bug in bigram feature generator