(self, fieldname, docs=10, numterms=5,
                  model=classify.Bo1Model, normalize=True)
return expander.expanded_terms(numterms, normalize=normalize)
Returns the 'numterms' most important terms from the top 'docs'
        documents in these results. "Most important" is generally defined as
        terms that occur frequently in the top hits but relatively infrequently
        in the collection as a whole.

        :param fieldname: Look at the terms in this field. This field must
            store vectors.
        :param docs: Look at this many of the top documents of the results.
        :param numterms: Return this number of important terms.
        :param model: The classify.ExpansionModel to use. See the classify
            module.
        :returns: list of unicode strings.
Returns the 'numterms' most important terms from the top 'docs'
        documents in these results. "Most important" is generally defined as
        terms that occur frequently in the top hits but relatively infrequently
        in the collection as a whole.
Returns the numterms most important terms from the top docs documents in these results . Most important is generally defined as terms that occur frequently in the top hits but relatively infrequently in the collection as a whole .
def key_terms(self, fieldname, docs=10, numterms=5,
                  model=classify.Bo1Model, normalize=True):
        """Returns the 'numterms' most important terms from the top 'docs'
        documents in these results. "Most important" is generally defined as
        terms that occur frequently in the top hits but relatively infrequently
        in the collection as a whole.

        :param fieldname: Look at the terms in this field. This field must
            store vectors.
        :param docs: Look at this many of the top documents of the results.
        :param numterms: Return this number of important terms.
        :param model: The classify.ExpansionModel to use. See the classify
            module.
        :returns: list of unicode strings.
        """

        if not len(self):
            return []
        docs = min(docs, len(self))

        reader = self.searcher.reader()

        expander = classify.Expander(reader, fieldname, model=model)
        for _, docnum in self.top_n[:docs]:
            expander.add_document(docnum)

        return expander.expanded_terms(numterms, normalize=normalize)
def key_terms ( self , fieldname , docs = 10 , numterms = 5 , model = classify . Bo1Model , normalize = True ) : if not len ( self ) : return [ ] docs = min ( docs , len ( self ) ) reader = self . searcher . reader ( ) expander = classify . Expander ( reader , fieldname , model = model ) for _ , docnum in self . top_n [ : docs ] : expander . add_document ( docnum ) return expander . expanded_terms ( numterms , normalize = normalize )