Changed ranker to incorporate the sentence ids.