Bases: object
Acceptor(syms=None, semiring=’tropical’) -> acceptor from the desired semiring
Bases: fst.LogTransducer
fst.add_arc(int source, int dest, label, weight=None): add an arc source->dest labeled with label and weighted with weight
Bases: fst._fst.LogVectorFst
fst.add_arc(int source, int dest, ilabel, olabel, weight=None): add an arc source->dest labeled with labels ilabel:olabel and weighted with weight
Bases: fst.StdTransducer
fst.add_arc(int source, int dest, label, weight=None): add an arc source->dest labeled with label and weighted with weight
Bases: fst._fst.StdVectorFst
fst.add_arc(int source, int dest, ilabel, olabel, weight=None): add an arc source->dest labeled with labels ilabel:olabel and weighted with weight
Bases: object
Transducer(isyms=None, osyms=None, semiring=’tropical’) -> transducer from the desired semiring
Bases: object
state.arcs: all the arcs starting from this state
Bases: fst._fst._Fst
add an arc source->dest labeled with labels ilabel:olabel and weighted with weight
fst.arc_sort_input(): sort the input arcs of the transducer
fst.arc_sort_output(): sort the output arcs of the transducer
Shortcut: fst >> other
fst.concatenate(LogVectorFst other): modify to the concatenation of the two transducers
Shortcut: fst + other
fst.connect(): removes states and arcs that are not on successful paths.
Shortcut: fst - other
-> dot format representation of the transducer
Shortcut: fst & other
fst.invert(): modify to the inverse of the transducer
sampled according to weights assumed to encode log probabilities
fst.minimize(): minimize the transducer
plus the given value
fst.project_input(): project the transducer on the input side
fst.project_output(): project the transducer on the output side
fst.prune(threshold): prune the transducer
weights or/and labels pushed to initial (default) or final state
to initial (default) or final state
to initial (default) or final state
fst.relabel(imap={}, omap={}): relabel the symbols on the arcs of the transducer imap/omap: (int -> int) or (str -> str) symbol mappings
fst.remove_epsilon(): remove the epsilon transitions from the transducer
label_fst_map: non-terminals (str) -> fst map epsilon: replace input label by epsilon?
fst.reweight(potentials, final=False): reweight arcs with given potentials in direction of initial (default) or final state
fst.set_closure(): modify to the Kleene closure of the transducer
fst.set_union(LogVectorFst other): modify to the union of the two transducers
times the given value
fst.top_sort(): topologically sort the nodes of the transducer
Shortcut: fst | other
fst.write(filename): write the binary representation of the transducer in filename
Bases: object
Bases: object
alias of TropicalWeight
Bases: object
alias of TropicalWeight
state.arcs: all the arcs starting from this state
Bases: fst._fst._Fst
alias of TropicalWeight
add an arc source->dest labeled with labels ilabel:olabel and weighted with weight
fst.arc_sort_input(): sort the input arcs of the transducer
fst.arc_sort_output(): sort the output arcs of the transducer
Shortcut: fst >> other
fst.concatenate(StdVectorFst other): modify to the concatenation of the two transducers
Shortcut: fst + other
fst.connect(): removes states and arcs that are not on successful paths.
Shortcut: fst - other
-> dot format representation of the transducer
Shortcut: fst & other
fst.invert(): modify to the inverse of the transducer
sampled according to weights assumed to encode log probabilities
fst.minimize(): minimize the transducer
plus the given value
fst.project_input(): project the transducer on the input side
fst.project_output(): project the transducer on the output side
fst.prune(threshold): prune the transducer
weights or/and labels pushed to initial (default) or final state
to initial (default) or final state
to initial (default) or final state
fst.relabel(imap={}, omap={}): relabel the symbols on the arcs of the transducer imap/omap: (int -> int) or (str -> str) symbol mappings
fst.remove_epsilon(): remove the epsilon transitions from the transducer
label_fst_map: non-terminals (str) -> fst map epsilon: replace input label by epsilon?
fst.reweight(potentials, final=False): reweight arcs with given potentials in direction of initial (default) or final state
fst.set_closure(): modify to the Kleene closure of the transducer
fst.set_union(StdVectorFst other): modify to the union of the two transducers
times the given value
fst.top_sort(): topologically sort the nodes of the transducer
Shortcut: fst | other
fst.write(filename): write the binary representation of the transducer in filename
Bases: object
table.write(filename): save the symbol table to filename
Bases: object
Detect arc type (LogArc or TropicalArc) and produce specific transducer.