omorfi 0.9.9
Open morphology of Finnish
Data Structures | Functions
omorfi Namespace Reference

-factorise More...

Data Structures

class  Omorfi
 

Functions

Omorfi load (str filename)
 
str find_omorfi (large_coverage=False)
 

Detailed Description

-factorise

Namespace for omorfi stuff.

Command-line interface to create moses factored analyses with omorfi.

Function Documentation

◆ find_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

◆ load()

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.