modifed grammar reader to have (pos,probability) in word_to_pos_map