Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num decorator_list NameLoad decorator_list AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num decorator_list NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str Return ListLoad Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return BinOpAdd Call NameLoad ListLoad Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return ListLoad Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad Call NameLoad ListLoad Num Call NameLoad ListLoad Num Call NameLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Continue Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return TupleLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Str Expr Call NameLoad NameLoad Str BinOpMult Str Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad BinOpDiv NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad BinOpDiv SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Str Expr Call NameLoad NameLoad Str BinOpMult Str Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad BinOpDiv NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad BinOpDiv SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad BinOpDiv SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list If CompareIs NameLoad NameLoad body Expr Call NameLoad orelse Expr Call NameLoad Expr Call NameLoad If NameLoad body Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str BinOpSub Num BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str ListComp BinOpSub NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str BinOpSub Num BinOpDiv SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad decorator_list decorator_list AttributeLoad NameLoad attr
N/A __future__ print_function division collections defaultdict nltk.compat Counter nltk.tag TaggerI nltk.tbl Feature Template nltk jsontags Word N/A Feature N/A N/A 
    Feature which examines the text (word) of nearby tokens.
     N/A json_tag nltk.tag.brill.Word extract_property N/A N/A tokens index N/A N/A N/A @return: The given token's text. N/A N/A N/A tokens N/A index N/A 0 N/A staticmethod N/A N/A jsontags register_tag Pos N/A Feature N/A N/A 
    Feature which examines the tags of nearby tokens.
     N/A json_tag nltk.tag.brill.Pos extract_property N/A N/A tokens index N/A N/A N/A @return: The given token's tag. N/A N/A N/A tokens N/A index N/A 1 N/A staticmethod N/A N/A jsontags register_tag nltkdemo18 N/A N/A N/A N/A N/A 
    Return 18 templates, from the original nltk demo, in multi-feature syntax
     N/A N/A N/A Template N/A Pos N/A -1 N/A Template N/A Pos N/A 1 N/A Template N/A Pos N/A -2 N/A Template N/A Pos N/A 2 N/A Template N/A Pos N/A -2 -1 N/A Template N/A Pos N/A 1 2 N/A Template N/A Pos N/A -3 -2 -1 N/A Template N/A Pos N/A 1 2 3 N/A Template N/A Pos N/A -1 N/A Pos N/A 1 N/A Template N/A Word N/A -1 N/A Template N/A Word N/A 1 N/A Template N/A Word N/A -2 N/A Template N/A Word N/A 2 N/A Template N/A Word N/A -2 -1 N/A Template N/A Word N/A 1 2 N/A Template N/A Word N/A -3 -2 -1 N/A Template N/A Word N/A 1 2 3 N/A Template N/A Word N/A -1 N/A Word N/A 1 N/A nltkdemo18plus N/A N/A N/A N/A N/A 
    Return 18 templates, from the original nltk demo, and additionally a few
    multi-feature ones (the motivation is easy comparison with nltkdemo18)
     N/A N/A N/A nltkdemo18 N/A N/A Template N/A Word N/A -1 N/A Pos N/A 1 N/A Template N/A Pos N/A -1 N/A Word N/A 1 N/A Template N/A Word N/A -1 N/A Word N/A 0 N/A Pos N/A 1 N/A Template N/A Pos N/A -1 N/A Word N/A 0 N/A Word N/A 1 N/A Template N/A Pos N/A -1 N/A Word N/A 0 N/A Pos N/A 1 N/A fntbl37 N/A N/A N/A N/A N/A 
    Return 37 templates taken from the postagging task of the
    fntbl distribution http://www.cs.jhu.edu/~rflorian/fntbl/
    (37 is after excluding a handful which do not condition on Pos[0];
    fntbl can do that but the current nltk implementation cannot.)
     N/A N/A N/A Template N/A Word N/A 0 N/A Word N/A 1 N/A Word N/A 2 N/A Template N/A Word N/A -1 N/A Word N/A 0 N/A Word N/A 1 N/A Template N/A Word N/A 0 N/A Word N/A -1 N/A Template N/A Word N/A 0 N/A Word N/A 1 N/A Template N/A Word N/A 0 N/A Word N/A 2 N/A Template N/A Word N/A 0 N/A Word N/A -2 N/A Template N/A Word N/A 1 2 N/A Template N/A Word N/A -2 -1 N/A Template N/A Word N/A 1 2 3 N/A Template N/A Word N/A -3 -2 -1 N/A Template N/A Word N/A 0 N/A Pos N/A 2 N/A Template N/A Word N/A 0 N/A Pos N/A -2 N/A Template N/A Word N/A 0 N/A Pos N/A 1 N/A Template N/A Word N/A 0 N/A Pos N/A -1 N/A Template N/A Word N/A 0 N/A Template N/A Word N/A -2 N/A Template N/A Word N/A 2 N/A Template N/A Word N/A 1 N/A Template N/A Word N/A -1 N/A Template N/A Pos N/A -1 N/A Pos N/A 1 N/A Template N/A Pos N/A 1 N/A Pos N/A 2 N/A Template N/A Pos N/A -1 N/A Pos N/A -2 N/A Template N/A Pos N/A 1 N/A Template N/A Pos N/A -1 N/A Template N/A Pos N/A -2 N/A Template N/A Pos N/A 2 N/A Template N/A Pos N/A 1 2 3 N/A Template N/A Pos N/A 1 2 N/A Template N/A Pos N/A -3 -2 -1 N/A Template N/A Pos N/A -2 -1 N/A Template N/A Pos N/A 1 N/A Word N/A 0 N/A Word N/A 1 N/A Template N/A Pos N/A 1 N/A Word N/A 0 N/A Word N/A -1 N/A Template N/A Pos N/A -1 N/A Word N/A -1 N/A Word N/A 0 N/A Template N/A Pos N/A -1 N/A Word N/A 0 N/A Word N/A 1 N/A Template N/A Pos N/A -2 N/A Pos N/A -1 N/A Template N/A Pos N/A 1 N/A Pos N/A 2 N/A Template N/A Pos N/A 1 N/A Pos N/A 2 N/A Word N/A 1 N/A brill24 N/A N/A N/A N/A N/A 
    Return 24 templates of the seminal TBL paper, Brill (1995)
     N/A N/A N/A Template N/A Pos N/A -1 N/A Template N/A Pos N/A 1 N/A Template N/A Pos N/A -2 N/A Template N/A Pos N/A 2 N/A Template N/A Pos N/A -2 -1 N/A Template N/A Pos N/A 1 2 N/A Template N/A Pos N/A -3 -2 -1 N/A Template N/A Pos N/A 1 2 3 N/A Template N/A Pos N/A -1 N/A Pos N/A 1 N/A Template N/A Pos N/A -2 N/A Pos N/A -1 N/A Template N/A Pos N/A 1 N/A Pos N/A 2 N/A Template N/A Word N/A -1 N/A Template N/A Word N/A 1 N/A Template N/A Word N/A -2 N/A Template N/A Word N/A 2 N/A Template N/A Word N/A -2 -1 N/A Template N/A Word N/A 1 2 N/A Template N/A Word N/A -1 0 N/A Template N/A Word N/A 0 1 N/A Template N/A Word N/A 0 N/A Template N/A Word N/A -1 N/A Pos N/A -1 N/A Template N/A Word N/A 1 N/A Pos N/A 1 N/A Template N/A Word N/A 0 N/A Word N/A -1 N/A Pos N/A -1 N/A Template N/A Word N/A 0 N/A Word N/A 1 N/A Pos N/A 1 N/A describe_template_sets N/A N/A N/A N/A N/A 
    Print the available template sets in this demo, with a short description"
     N/A inspect N/A sys N/A templatesets N/A N/A inspect getmembers N/A N/A sys modules N/A __name__ N/A inspect isfunction N/A N/A name obj templatesets N/A N/A N/A name describe_template_sets N/A N/A N/A N/A print name N/A obj __doc__ N/A BrillTagger N/A TaggerI N/A N/A 
    Brill's transformational rule-based tagger.  Brill taggers use an
    initial tagger (such as ``tag.DefaultTagger``) to assign an initial
    tag sequence to a text; and then apply an ordered list of
    transformational rules to correct the tags of individual tokens.
    These transformation rules are specified by the ``TagRule``
    interface.

    Brill taggers can be created directly, from an initial tagger and
    a list of transformational rules; but more often, Brill taggers
    are created by learning rules from a training corpus, using one
    of the TaggerTrainers available.
     N/A json_tag nltk.tag.BrillTagger __init__ N/A N/A self initial_tagger rules training_stats N/A None N/A N/A 
        :param initial_tagger: The initial tagger
        :type initial_tagger: TaggerI

        :param rules: An ordered list of transformation rules that
            should be used to correct the initial tagging.
        :type rules: list(TagRule)

        :param training_stats: A dictionary of statistics collected
            during training, for possible later use
        :type training_stats: dict

         N/A N/A self _initial_tagger initial_tagger N/A N/A self _rules N/A tuple rules N/A N/A self _training_stats training_stats N/A encode_json_obj N/A N/A self N/A N/A N/A N/A N/A self _initial_tagger N/A self _rules N/A self _training_stats N/A decode_json_obj N/A N/A cls obj N/A N/A N/A N/A _initial_tagger _rules _training_stats obj N/A N/A cls _initial_tagger _rules _training_stats N/A classmethod rules N/A N/A self N/A N/A N/A 
        Return the ordered list of  transformation rules that this tagger has learnt

        :return: the ordered list of transformation rules that correct the initial tagging
        :rtype: list of Rules
         N/A N/A self _rules N/A train_stats N/A N/A self statistic N/A None N/A N/A 
        Return a named statistic collected during training, or a dictionary of all
        available statistics if no name given

        :param statistic: name of statistic
        :type statistic: str
        :return: some statistic collected during training of this tagger
        :rtype: any (but usually a number)
         N/A N/A statistic None N/A N/A N/A self _training_stats N/A N/A N/A N/A N/A self _training_stats get statistic N/A tag N/A N/A self tokens N/A N/A N/A tagged_tokens N/A N/A N/A self _initial_tagger tag tokens N/A tag_to_positions N/A defaultdict set N/A N/A i N/A token tag N/A enumerate tagged_tokens N/A N/A N/A N/A N/A tag_to_positions N/A tag add i N/A rule N/A self _rules N/A N/A positions N/A N/A tag_to_positions get N/A rule original_tag N/A N/A changed N/A N/A rule apply tagged_tokens positions N/A i changed N/A N/A N/A N/A N/A tag_to_positions N/A N/A rule original_tag remove i N/A N/A N/A N/A tag_to_positions N/A N/A rule replacement_tag add i N/A tagged_tokens N/A print_template_statistics N/A N/A self test_stats printunused N/A None True N/A N/A 
        Print a list of all templates, ranked according to efficiency.

        If test_stats is available, the templates are ranked according to their
        relative contribution (summed for all rules created from a given template,
        weighted by score) to the performance on the test set. If no test_stats, then
        statistics collected during training are used instead. There is also
        an unweighted measure (just counting the rules). This is less informative,
        though, as many low-score rules will appear towards end of training.

        :param test_stats: dictionary of statistics collected during testing
        :type test_stats: dict of str -> any (but usually numbers)
        :param printunused: if True, print a list of all unused templates
        :type printunused: bool
        :return: None
        :rtype: None
         N/A tids N/A N/A r templateid N/A r N/A self _rules N/A train_stats N/A N/A self train_stats N/A trainscores N/A train_stats N/A rulescores N/A N/A N/A len trainscores N/A len tids N/A N/A corrupt statistics: {0} train scores for {1} rules format trainscores tids N/A template_counts N/A Counter tids N/A weighted_traincounts N/A Counter N/A N/A tid score N/A zip tids trainscores N/A N/A N/A weighted_traincounts N/A tid score N/A tottrainscores N/A sum trainscores det_tplsort N/A N/A tpl_value N/A N/A N/A N/A N/A tpl_value N/A 1 N/A repr N/A tpl_value N/A 0 N/A print_train_stats N/A N/A N/A N/A N/A N/A print N/A N/A TEMPLATE STATISTICS (TRAIN)  {0} templates, {1} rules) format N/A len template_counts N/A len tids N/A N/A print N/A N/A TRAIN ({tokencount:7d} tokens) initial {initialerrors:5d} {initialacc:.4f} final: {finalerrors:5d} {finalacc:.4f}  format train_stats N/A head #ID | Score (train) |  #Rules     | Template N/A N/A print head N/A - N/A len head sep N/A train_tplscores N/A sorted N/A N/A weighted_traincounts items key det_tplsort reverse True N/A N/A tid trainscore train_tplscores N/A N/A s N/A N/A {0} | {1:5d}   {2:5.3f} |{3:4d}   {4:.3f} | {5} format tid trainscore N/A trainscore tottrainscores N/A template_counts N/A tid N/A N/A template_counts N/A tid N/A len tids N/A N/A Template ALLTEMPLATES N/A N/A int tid N/A N/A print s N/A print_testtrain_stats N/A N/A N/A N/A N/A testscores N/A test_stats N/A rulescores N/A N/A print N/A N/A TEMPLATE STATISTICS (TEST AND TRAIN) ({0} templates, {1} rules) format N/A len template_counts N/A len tids N/A N/A print N/A N/A TEST  ({tokencount:7d} tokens) initial {initialerrors:5d} {initialacc:.4f} final: {finalerrors:5d} {finalacc:.4f}  format test_stats N/A N/A print N/A N/A TRAIN ({tokencount:7d} tokens) initial {initialerrors:5d} {initialacc:.4f} final: {finalerrors:5d} {finalacc:.4f}  format train_stats N/A weighted_testcounts N/A Counter N/A N/A tid score N/A zip tids testscores N/A N/A N/A weighted_testcounts N/A tid score N/A tottestscores N/A sum testscores N/A head #ID | Score (test) | Score (train) |  #Rules     | Template N/A N/A print head N/A - N/A len head sep N/A test_tplscores N/A sorted N/A N/A weighted_testcounts items key det_tplsort reverse True N/A N/A tid testscore test_tplscores N/A N/A s N/A N/A {0:s} |{1:5d}  {2:6.3f} |  {3:4d}   {4:.3f} |{5:4d}   {6:.3f} | {7:s} format tid testscore N/A testscore tottestscores N/A weighted_traincounts N/A tid N/A N/A weighted_traincounts N/A tid tottrainscores N/A template_counts N/A tid N/A N/A template_counts N/A tid N/A len tids N/A N/A Template ALLTEMPLATES N/A N/A int tid N/A N/A print s N/A print_unused_templates N/A N/A N/A N/A N/A usedtpls N/A set N/A N/A int tid N/A tid tids N/A unused N/A N/A tid tpl N/A N/A tid tpl N/A enumerate N/A Template ALLTEMPLATES N/A tid usedtpls N/A N/A print N/A N/A UNUSED TEMPLATES ({0}) format N/A len unused N/A N/A tid tpl unused N/A N/A N/A print N/A N/A {0:03d} {1:s} format tid tpl N/A N/A N/A test_stats None N/A N/A N/A print_train_stats N/A N/A N/A print_testtrain_stats N/A N/A print N/A printunused N/A N/A N/A print_unused_templates N/A N/A print N/A batch_tag_incremental N/A N/A self sequences gold N/A N/A N/A 
        Tags by applying each rule to the entire corpus (rather than all rules to a
        single sequence). The point is to collect statistics on the test set for
        individual rules.

        NOTE: This is inefficient (does not build any index, so will traverse the entire
        corpus N times for N rules) -- usually you would not care about statistics for
        individual rules and thus use batch_tag() instead

        :param sequences: lists of token sequences (sentences, in some applications) to be tagged
        :type sequences: list of list of strings
        :param gold: the gold standard
        :type gold: list of list of strings
        :returns: tuple of (tagged_sequences, ordered list of rule scores (one for each rule))
         counterrors N/A N/A xs N/A N/A N/A N/A sum N/A N/A N/A t N/A 1 N/A g N/A 1 N/A pair N/A zip xs gold N/A N/A t g N/A zip pair N/A N/A testing_stats N/A N/A N/A testing_stats N/A tokencount N/A sum N/A N/A len t N/A t sequences N/A N/A testing_stats N/A sequencecount N/A len sequences N/A tagged_tokenses N/A N/A N/A N/A self _initial_tagger tag tokens N/A tokens sequences N/A N/A testing_stats N/A initialerrors N/A counterrors tagged_tokenses N/A N/A testing_stats N/A initialacc N/A 1 N/A N/A testing_stats N/A initialerrors N/A testing_stats N/A tokencount N/A errors N/A N/A testing_stats N/A initialerrors N/A rule N/A self _rules N/A N/A tagged_tokens tagged_tokenses N/A N/A N/A N/A rule apply tagged_tokens N/A N/A N/A errors append N/A counterrors tagged_tokenses N/A N/A testing_stats N/A rulescores N/A N/A err0 err1 N/A N/A err0 err1 N/A zip errors N/A errors N/A 1 N/A N/A testing_stats N/A finalerrors N/A errors N/A -1 N/A N/A testing_stats N/A finalacc N/A 1 N/A N/A testing_stats N/A finalerrors N/A testing_stats N/A tokencount N/A N/A tagged_tokenses testing_stats N/A N/A N/A jsontags register_tag