- Notifications
You must be signed in to change notification settings - Fork1
Rule
A rule that contains mapping and context and replace type (if any).
If rule isA -> B || L _ R , than mapping is cross product of transducers A and B,context is pair of transducers L and R, and replType is enum REPL_UP.
__init__(self, mapping)
Rule that performs mappings defined inmapping in every context.
mappingHfstTransducerPairVector
__init__(self, mapping, context, type)
Rule that performs mappings defined inmapping in contextscontext.type defines how contexts are matched.
mappingHfstTransducerPairVectorcontextHfstTransducerPairVectortypeReplType
__init__(self, rule)
Copy Rule.
ruleRule
__init__(self)
Default constructor needed for python.
get_mapping(self)
Get mappings defined in Rule.
Return: HfstTransducerPairVector
get_context()
Get contexts defined in Rule.
Return: HfstTransducerPairVector
get_replType()
Get replace type defined in Rule.
Return: ReplaceType
encodeFlags()
Encode flag diacritics.