Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv NameLoad AttributeLoad NameLoad attr Return BinOpDiv BinOpAdd BinOpMult NameLoad Call NameLoad BinOpDiv BinOpAdd Num NameLoad NameLoad Call NameLoad BinOpAdd Num NameLoad Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv NameLoad AttributeLoad NameLoad attr Return BinOpAdd BinOpMult NameLoad Call NameLoad BinOpDiv BinOpAdd Num NameLoad NameLoad Num Call NameLoad BinOpAdd Num NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpAdd BinOpMult NameLoad Call NameLoad BinOpDiv BinOpAdd Num NameLoad NameLoad Num Call NameLoad BinOpAdd Num NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad AttributeLoad NameLoad attr Return BinOpAdd BinOpMult NameLoad Call NameLoad BinOpDiv BinOpAdd Num NameLoad NameLoad Num Call NameLoad BinOpAdd Num NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMult BinOpDiv BinOpMult NameLoad Call NameLoad BinOpDiv AttributeLoad NameLoad attr NameLoad Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore BinOpDiv NameLoad AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Return Num orelse Return BinOpMult NameLoad Call NameLoad BinOpDiv NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore ListComp TupleLoad BinOpDiv NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore SubscriptLoad NameLoad Slice NameLoad decorator_list decorator_list
N/A N/A Classes and functions for classifying and extracting information from documents.
 __future__ division with_statement collections defaultdict math log ExpansionModel N/A object N/A __init__ N/A N/A self searcher fieldname N/A N/A N/A N/A self N N/A N/A searcher doc_count_all N/A N/A self collection_total N/A N/A searcher field_length fieldname N/A N/A self mean_length N/A N/A self collection_total N/A self N N/A normalizer N/A N/A self maxweight top_total N/A N/A N/A NotImplementedError N/A score N/A N/A self weight_in_top weight_in_collection top_total N/A N/A N/A NotImplementedError N/A N/A Bo1Model N/A ExpansionModel N/A normalizer N/A N/A self maxweight top_total N/A N/A N/A f N/A maxweight N/A self N N/A N/A N/A N/A maxweight N/A log N/A N/A 1.0 f f N/A log N/A 1.0 f N/A log 2.0 N/A score N/A N/A self weight_in_top weight_in_collection top_total N/A N/A N/A f N/A weight_in_collection N/A self N N/A N/A N/A weight_in_top N/A log N/A N/A 1.0 f f 2 N/A log N/A 1.0 f 2 N/A N/A Bo2Model N/A ExpansionModel N/A normalizer N/A N/A self maxweight top_total N/A N/A N/A f N/A N/A maxweight N/A self N N/A self collection_total N/A N/A N/A maxweight N/A log N/A N/A 1.0 f f 2 N/A log N/A 1.0 f 2 N/A score N/A N/A self weight_in_top weight_in_collection top_total N/A N/A N/A f N/A N/A weight_in_top top_total N/A self collection_total N/A N/A N/A weight_in_top N/A log N/A N/A 1.0 f f 2 N/A log N/A 1.0 f 2 N/A N/A KLModel N/A ExpansionModel N/A normalizer N/A N/A self maxweight top_total N/A N/A N/A N/A N/A N/A maxweight N/A log N/A N/A self collection_total top_total N/A log 2.0 top_total N/A score N/A N/A self weight_in_top weight_in_collection top_total N/A N/A N/A wit_over_tt N/A weight_in_top top_total N/A wic_over_ct N/A weight_in_collection N/A self collection_total N/A N/A wit_over_tt wic_over_ct N/A N/A 0 N/A N/A N/A wit_over_tt N/A log N/A wit_over_tt N/A weight_in_top N/A self collection_total 2 N/A N/A Expander N/A object N/A N/A Uses an ExpansionModel to expand the set of query terms based on
    the top N result documents.
     __init__ N/A N/A self searcher fieldname model N/A Bo1Model N/A N/A 
        :searcher: A searching.Searcher object for the index.
        :fieldname: The name of the field in which to search.
        :model: (classify.ExpansionModel) The model to use for expanding
            the query terms. If you omit this parameter, the expander uses
            scoring.Bo1Model by default.
         N/A N/A self fieldname fieldname N/A N/A callable model N/A N/A model N/A model searcher fieldname N/A N/A self model model N/A term_reader N/A searcher term_reader N/A N/A self collection_freq N/A dict N/A N/A word freq N/A N/A word _ freq N/A N/A term_reader iter_field fieldname N/A N/A self topN_weight N/A defaultdict float N/A N/A self top_total 0 N/A add N/A N/A self vector N/A N/A N/A Adds forward-index information about one of the "top N" documents.
        
        :vector: A series of (text, weight) tuples, such as is
            returned by DocReader.vector_as(docnum, fieldnum, "weight").
         N/A total_weight 0 N/A topN_weight N/A self topN_weight N/A N/A word weight vector N/A N/A total_weight weight N/A N/A topN_weight N/A word weight N/A N/A self top_total total_weight N/A expanded_terms N/A N/A self number normalize N/A True N/A N/A Returns the N most important terms in the vectors added so far.
        
        :number: The number of terms to return.
        :normalize: Whether to normalize the weights.
        :*returns*: A list of ("term", weight) tuples.
         N/A model N/A self model N/A tlist N/A N/A maxweight 0 N/A collection_freq N/A self collection_freq N/A N/A word weight N/A N/A N/A self topN_weight iteritems N/A N/A score N/A N/A model score weight N/A collection_freq N/A word N/A self top_total N/A N/A score maxweight N/A N/A maxweight score N/A N/A N/A tlist append N/A score word N/A normalize N/A N/A norm N/A N/A model normalizer maxweight N/A self top_total N/A N/A norm maxweight N/A tlist N/A N/A N/A weight norm t N/A N/A weight t tlist N/A N/A N/A tlist sort reverse True N/A N/A N/A t weight N/A N/A weight t N/A tlist N/A number N/A N/A