omorfi 0.9.9
Open morphology of Finnish
Public Member Functions | Data Fields
omorfi.hyphenator.Hyphenator Class Reference

Public Member Functions

def __init__ (self)
 
def load_hyphenator (self, str hfstfile)
 
def hyphenate (self, Token token)
 

Data Fields

 hyphenator
 

Detailed Description

An object for omorfi’s hyphenateation.

Constructor & Destructor Documentation

◆ __init__()

def omorfi.hyphenator.Hyphenator.__init__ (   self)
Initialise empty hyphenator.

Member Function Documentation

◆ hyphenate()

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

◆ load_hyphenator()

def omorfi.hyphenator.Hyphenator.load_hyphenator (   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: