-
Notifications
You must be signed in to change notification settings - Fork 1
XreCompiler
-
class XreCompiler
- __init__ (self)
- __init__ (self, impl)
- define_xre (self, name, xre)
- define_transducer (self, name, transducer)
- define_list (self, name, symbol_list)
- define_function (self, name, arguments, xre)
- undefine (self, name)
- compile (self, xre)
- is_definition (self, name)
- is_function_definition (self, name)
- set_verbosity (self, v)
- setOutputToConsole (self, v)
- getOutputToConsole (self, )
- set_expand_definitions (self, v)
A regular expression compiler.
The easiest way to create transducers from regular expressions is probably the function hfst.regex.
Construct compiler for OpenFst format (the default) transducers.
Create compiler for impl
format transducers.
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).
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).
todo
todo
todo
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.
Return: An HfstTransducer pointer.
Whether name
is a definition.
Whether name
is a function definition.
Set the verbosity of the compiler.
-
v
: True or False
(Windows-specific) Whether output is printed to console instead of standard output.
-
v
True or False
(Windows-specific) Whether output is printed to console instead of standard output.
Whether definitions are expanded.
-
v
True or False
Package hfst
- AttReader
- PrologReader
- HfstBasicTransducer
- HfstBasicTransition
- HfstTransducer
- HfstInputStream
- HfstOutputStream
- MultiCharSymbolTrie
- HfstTokenizer
- LexcCompiler
- XreCompiler
- PmatchContainer
- ImplementationType