HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.12.3 (under development)
|
Xerox-type replace rules. More...
Classes | |
class | ReplaceType |
Type of Xerox-type replace rules. More... | |
class | Rule |
A rule that contains mapping and context and replace type (if any). More... | |
Functions | |
def | after (left, right) |
todo More... | |
def | before (left, right) |
todo More... | |
def | replace (rule, optional) |
replace up, left, right, down More... | |
def | replace_epenthesis (rule, optional) |
replace up, left, right, down More... | |
def | replace_left (rule, optional) |
replace up, left, right, down More... | |
def | replace_leftmost_longest_match (rule) |
left to right More... | |
def | replace_leftmost_shortest_match (rule) |
todo More... | |
def | replace_rightmost_longest_match (rule) |
right to left More... | |
def | replace_rightmost_shortest_match (rule) |
todo More... | |
def | restriction (automaton, context) |
Restriction function "=>". More... | |
Xerox-type replace rules.
def hfst.xerox_rules.after | ( | left, | |
right | |||
) |
todo
left | (HfstTransducer) |
right | (HfstTransducer) |
def hfst.xerox_rules.before | ( | left, | |
right | |||
) |
todo
left | (HfstTransducer) |
right | (HfstTransducer) |
def hfst.xerox_rules.replace | ( | rule, | |
optional | |||
) |
replace up, left, right, down
rule | (Rule, HfstRuleVector) |
optional | (Bool) |
def hfst.xerox_rules.replace_epenthesis | ( | rule, | |
optional | |||
) |
replace up, left, right, down
rule | (Rule, HfstRuleVector) |
optional | (Bool) |
def hfst.xerox_rules.replace_left | ( | rule, | |
optional | |||
) |
replace up, left, right, down
rule | (Rule, HfstRuleVector) |
optional | (Bool) |
def hfst.xerox_rules.replace_leftmost_longest_match | ( | rule | ) |
left to right
rule | (Rule, HfstRuleVector) |
def hfst.xerox_rules.replace_leftmost_shortest_match | ( | rule | ) |
todo
rule | (Rule, HfstRuleVector) |
def hfst.xerox_rules.replace_rightmost_longest_match | ( | rule | ) |
right to left
rule | (Rule, HfstRuleVector) |
def hfst.xerox_rules.replace_rightmost_shortest_match | ( | rule | ) |
todo
rule | (Rule, HfstRuleVector) |
def hfst.xerox_rules.restriction | ( | automaton, | |
context | |||
) |
Restriction function "=>".
automaton | (HfstTransducer) |
context | (HfstTransducerPairVector) |