def _rank ( self , ranking , n ) : return nlargest ( n , ranking , key = ranking . get )
get greatest index from bag of words python
return the first n sentences with highest ranking
def _rank(self, ranking, n):
    """ return the first n sentences with highest ranking """
    return nlargest(n, ranking, key=ranking.get)