-
Notifications
You must be signed in to change notification settings - Fork 1
Rule
A rule that contains mapping and context and replace type (if any).
If rule is A -> 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 in mapping
in every context.
-
mapping
HfstTransducerPairVector
__init__(self, mapping, context, type)
Rule that performs mappings defined in mapping
in contexts context.
type
defines how contexts are matched.
-
mapping
HfstTransducerPairVector -
context
HfstTransducerPairVector -
type
ReplType
__init__(self, rule)
Copy Rule.
-
rule
Rule
__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.
Package hfst
- AttReader
- PrologReader
- HfstBasicTransducer
- HfstBasicTransition
- HfstTransducer
- HfstInputStream
- HfstOutputStream
- MultiCharSymbolTrie
- HfstTokenizer
- LexcCompiler
- XreCompiler
- PmatchContainer
- ImplementationType