![]() |
omorfi 0.9.9
Open morphology of Finnish
|
Public Member Functions | |
def | __init__ (self) |
def | load_hyphenator (self, str hfstfile) |
def | hyphenate (self, Token token) |
Data Fields | |
hyphenator | |
An object for omorfi’s hyphenateation.
def omorfi.hyphenator.Hyphenator.__init__ | ( | self | ) |
Initialise empty hyphenator.
def omorfi.hyphenator.Hyphenator.hyphenate | ( | self, | |
Token | token | ||
) |
Segment token into morphs, words and other string pieces. Side-effect: this operation stores hyphenates in the token for future use and only returns the HFST structures. To get pythonic data use Token's methods afterwards. Args: token: token to hyphenate Returns: New hyphenateations in analysis list
def omorfi.hyphenator.Hyphenator.load_hyphenator | ( | self, | |
str | hfstfile | ||
) |
Load analysis model from a file. Args f: containing single hfst automaton binary.