An object for omorfi’s morphological generation.
◆ __init__()
def omorfi.generator.Generator.__init__ |
( |
|
self | ) |
|
Initialise empty generator.
◆ generate()
def omorfi.generator.Generator.generate |
( |
|
self, |
|
|
str |
omorstring |
|
) |
| |
Generate surface forms corresponding given token description.
Currently only supports very direct omor style analysis string
generation.
Args:
omorstring: Omorfi analysis string to generate
Returns
A surface string word-form, or the omorstring argument if
generation fails. Or None if generator is not loaded.
◆ load_generator()
def omorfi.generator.Generator.load_generator |
( |
|
self, |
|
|
str |
hfstfile |
|
) |
| |
Load analysis model from a file.
Args
f: containing single hfst automaton binary.
The documentation for this class was generated from the following file:
- /home/flammie/github/flammie/omorfi/src/python/omorfi/generator.py