omorfi 0.9.9
Open morphology of Finnish
|
-factorise More...
Data Structures | |
class | Omorfi |
Functions | |
Omorfi | load (str filename) |
str | find_omorfi (large_coverage=False) |
-factorise
Namespace for omorfi stuff.
Command-line interface to create moses factored analyses with omorfi.
str omorfi.find_omorfi | ( | large_coverage = False | ) |
Search the usual paths for omorfi FSA language models. Returns first located filename in one of the typical omorfi installation paths or the current working directory, or omorfi source directory if it is relative to cwd. Args: large_coverage set to true for loading large coverage language model Returns: string containing path of a file containing omorfi FSA language model. See also: http://flammie.github.io/omorfi/smaller-lexicons.html
Omorfi omorfi.load | ( | str | filename | ) |
Load omorfi analyser with specified FSA language model. This convenience function is provided as a generic fast entry point to omorfi python API. For further details, see the Omorfi class. Args: filename: filename and path as string Returns: omorfi object, ready for analysis functions.