HFST - Helsinki Finite-State Transducer Technology - Python API  version 3.12.1
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Functions
__init__.py File Reference

Namespaces

 hfst.sfst_rules
 rules...
 

Functions

def coercion
 A transducer that requires that one of the mappings defined by mapping must occur in each context in contexts. More...
 
def deep_coercion
 A transducer that specifies that a string from the output language of the transducer mapping always has to be mapped to one of its input strings (according to transducer mappings) if it appears in any of the contexts in contexts. More...
 
def deep_restriction
 A transducer that specifies that a string from the output language of the transducer mapping may only be mapped to one of its input strings (according to transducer mappings) if it appears in any of the contexts in contexts.Symbols outside of the matching substrings are mapped to any symbol allowed by alphabet. More...
 
def deep_restriction_and_coercion
 A transducer that is equivalent to the intersection of deep_restriction and deep_coercion. More...
 
def left_replace_down
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def left_replace_down_karttunen
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def left_replace_left
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def left_replace_right
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def left_replace_up
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def left_replace_up
 Inversion of the replace_up and the result needs to be composed on the upper side of the input language. More...
 
def replace_down
 The same as replace_up, but matching is done on the output side of mapping. More...
 
def replace_down
 The same as replace_down(context, mapping, optional, alphabet) but mapping is performed in every context. More...
 
def replace_down_karttunen
 TODO: document. More...
 
def replace_left
 The same as replace_up, but left context matching is done on the output side of mapping and right context on the input side of mapping. More...
 
def replace_right
 The same as replace_up, but left context matching is done on the input side of mapping and right context on the output side of mapping. More...
 
def replace_up
 A transducer that performs an upward mapping mapping in the context context when the alphabet is alphabet. More...
 
def replace_up
 The same as replace_up but mapping is performed in every context. More...
 
def restriction
 A transducer that allows any (substring) mapping defined by mapping only if it occurs in any of the contexts in contexts. More...
 
def restriction_and_coercion
 A transducer that is equivalent to the intersection of restriction and coercion and requires that the mappings defined by mapping occur always and only in the given contexts in contexts. More...
 
def surface_coercion
 A transducer that specifies that a string from the input language of the transducer mapping always has to the mapped to one of its output strings according to transducer mapping if it appears in any of the contexts in contexts. More...
 
def surface_restriction
 A transducer that specifies that a string from the input language of the transducer mapping may only be mapped to one of its output strings (according to transducer mapping) if it appears in any of the contexts in contexts. More...
 
def surface_restriction_and_coercion
 A transducer that is equivalent to the intersection of surface_restriction and surface_coercion. More...
 
def two_level_if
 A transducer that obligatorily performs the mappings defined by mappings in the context context when the alphabet is alphabet. More...
 
def two_level_if_and_only_if
 A transducer that always performs the mappings defined by mappings in the context context and only in that context, when the alphabet is alphabet. More...
 
def two_level_only_if
 A transducer that allows the mappings defined by mappings only in the context context, when the alphabet is alphabet. More...