(self, fieldname, number=5, prefix='')
return nlargest(number, gen)
Returns the top 'number' most frequent terms in the given field as a
        list of (frequency, text) tuples.
Returns the top 'number' most frequent terms in the given field as a
        list of (frequency, text) tuples.
Returns the top number most frequent terms in the given field as a list of ( frequency text ) tuples .
def most_frequent_terms(self, fieldname, number=5, prefix=''):
        """Returns the top 'number' most frequent terms in the given field as a
        list of (frequency, text) tuples.
        """

        gen = ((terminfo.weight(), text) for text, terminfo
               in self.iter_prefix(fieldname, prefix))
        return nlargest(number, gen)
def most_frequent_terms ( self , fieldname , number = 5 , prefix = '' ) : gen = ( ( terminfo . weight ( ) , text ) for text , terminfo in self . iter_prefix ( fieldname , prefix ) ) return nlargest ( number , gen )