HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.12.1
|
A regular expression compiler. More...
Public Member Functions | |
def | __init__ |
Construct compiler for OpenFst format (the default) transducers. More... | |
def | __init__ |
Create compiler for impl format transducers. More... | |
def | compile |
Compile a transducer defined by xre. More... | |
def | define_function |
todo More... | |
def | define_list |
todo More... | |
def | define_transducer |
Add a definition macro. More... | |
def | define_xre |
Add a definition macro. More... | |
def | getOutputToConsole |
(Windows-specific) Whether output is printed to console instead of standard output. More... | |
def | is_definition |
Whether name is a definition. More... | |
def | is_function_definition |
Whether name is a function definition. More... | |
def | set_expand_definitions |
Whether definitions are expanded. More... | |
def | set_verbosity |
Set the verbosity of the compiler. More... | |
def | setOutputToConsole |
(Windows-specific) Whether output is printed to console instead of standard output. More... | |
def | undefine |
todo More... | |
A regular expression compiler.
def __init__ | ( | self | ) |
Construct compiler for OpenFst format (the default) transducers.
def __init__ | ( | self, | |
impl | |||
) |
Create compiler for impl format transducers.
def compile | ( | self, | |
xre | |||
) |
Compile a transducer defined by xre.
May return a pointer to empty transducer on non-fatal error. A None pointer is returned on fatal error, if abort is not called.
def define_function | ( | self, | |
name, | |||
arguments, | |||
xre | |||
) |
todo
def define_list | ( | self, | |
name, | |||
symbol_list | |||
) |
todo
def define_transducer | ( | self, | |
name, | |||
transducer | |||
) |
Add a definition macro.
Compiler will replace arcs labeled name with a transducer transducer in later phases of compilation (if set_expand_definitions(True) has been called).
def define_xre | ( | self, | |
name, | |||
xre | |||
) |
Add a definition macro.
Compiler will replace arcs labeled name with a transducer defined by regular expression xre in later phases of compilation (if set_expand_definitions(True) has been called).
def getOutputToConsole | ( | self | ) |
(Windows-specific) Whether output is printed to console instead of standard output.
def is_definition | ( | self, | |
name | |||
) |
Whether name is a definition.
def is_function_definition | ( | self, | |
name | |||
) |
Whether name is a function definition.
def set_expand_definitions | ( | self, | |
v | |||
) |
Whether definitions are expanded.
def set_verbosity | ( | self, | |
v | |||
) |
Set the verbosity of the compiler.
def setOutputToConsole | ( | self, | |
v | |||
) |
(Windows-specific) Whether output is printed to console instead of standard output.
def undefine | ( | self, | |
name | |||
) |
todo