rbnet.base.NonTermVar
- class rbnet.base.NonTermVar(*args, **kwargs)[source]
Bases:
ABCBase class for non-terminal variables. Instances of
NonTermVarrepresent a specific type of template variable. A parse chart for that variable for specific input data can be requested viaget_chart(). Mixtures over this variable type can be computed viamixture().Public Methods:
__init__(*args, **kwargs)get_chart(*args, **kwargs)Return a parse chart to store this variable type in.
mixture(*args, **kwargs)Compute a mixture over this variable type.
Private Data Attributes:
_abc_implInherited from
ABC_abc_impl
- abstractmethod get_chart(*args, **kwargs)[source]
Return a parse chart to store this variable type in. The specific arguments depend on the implementation but typically include information about the input data for which the parse chart is requested (e.g. the length of the sequence for sequential input data).