Home | Trees | Indices | Help |
|
---|
|
A class used to interface with the AT&T fsmtools package. In particular, FSMTools.transduce can be used to transduce an input string using any subsequential transducer where each input and output arc is labelled with at most one symbol.
|
|||
Helpers | |||
---|---|---|---|
IDMapping |
|
|||
|
|||
Transduction | |||
---|---|---|---|
|
|||
FSM Compilation | |||
|
|||
|
|||
Helpers | |||
|
|||
|
|
|||
EPSILON = object() A special symbol object used to represent epsilon strings in the symbol<->id mapping (FSMTools._symbol_ids). |
|
|||
fsmtools_path The path of the directory containing the fsmtools binaries. |
|||
_symbol_ids A mapping from symbols to unique integer IDs. |
|||
_state_ids A mapping from state labels to unique integer IDs. |
|
Compile the given symbol string into an fsmtools .fsm file, and write it to the given filename. This FSM will generate the given symbol string, and no other strings. |
|
_symbol_idsA mapping from symbols to unique integer IDs. We manage our own mapping, rather than using 'symbol files', since symbol files can't handle non-string symbols, symbols containing whitespace, unicode symbols, etc. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:24 2007 | http://epydoc.sourceforge.net |