Package jazzparser :: Package formalisms :: Package base :: Module rules :: Class CompositionRuleBase
[hide private]
[frames] | no frames]

Class CompositionRuleBase

source code

object --+    
         |    
      Rule --+
             |
            CompositionRuleBase
Known Subclasses:

Rule for standard CCG composition.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
apply_rule(self, cat_list, conditions=None, proc_sems=None)
*** This should be overridden by subclasses.
source code

Inherited from Rule: __str__, apply_rule_semantics

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from Rule: readable_rule

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

apply_rule(self, cat_list, conditions=None, proc_sems=None)

source code 

*** This should be overridden by subclasses. *** Applies the rule to combine the categories in cat_list.

Note that the returned semantics should always be in beta-normal form.

Returns:
a list of the possible categories resulting from the application if the rule is valid for the given arguments, otherwise None.
Overrides: Rule.apply_rule
(inherited documentation)