Home | History | Annotate | Download | only in classification

Lines Matching defs:Rule

8 is of to the concrete classifiers, which have to override the Rule class herein
16 - Order of siblings rules matter: what is caught by a rule will not be caught
19 catch-all child catches everything (within the parent rule scope) that is
24 The format of a rule dictionary is the following:
27 'name': 'Name of the rule',
33 'name': 'Name of the sub-rule 1'
40 And a typical resulting rule tree looks like this:
64 """Construct a rule tree from a python-style dict representation.
67 content: a string containing the dict (i.e. content of the rule file).
69 and returns a subclass of |Rule|. |filters_dict| is a dict of the keys
70 (filter-foo, filter-bar in the example above) for the rule node.
73 root = Rule('Total')
78 class Rule(object):
79 """ An abstract class representing a rule node in the rules tree.
97 assert(isinstance(child_rule, Rule))
99 assert(not duplicates), 'Duplicate rule ' + child_rule.name
104 """Recursive rule tree builder for traversing the rule dict."""
119 rule_node.AppendChild(Rule