omorfi 0.9.9
Open morphology of Finnish
Public Member Functions | Data Fields
omorfi.disamparsulate.evidence.Evidence Class Reference

Public Member Functions

def __init__ (self)
 
def apply (self, Token token, list sentence)
 
def find_context (self, Token target, list sentence)
 
def count_barriers (self, Token target, list sentence, Token head)
 
def in_context (self, Token target, list sentence, Token head)
 

Data Fields

 name
 
 target
 
 context
 
 dispute
 
 depname
 
 unlikelihood
 

Detailed Description

Not a rule.

Constructor & Destructor Documentation

◆ __init__()

def omorfi.disamparsulate.evidence.Evidence.__init__ (   self)
Create a new evidence matching pattern.

Member Function Documentation

◆ apply()

def omorfi.disamparsulate.evidence.Evidence.apply (   self,
Token  token,
list  sentence 
)
If suggestion applies to token in context.

◆ count_barriers()

def omorfi.disamparsulate.evidence.Evidence.count_barriers (   self,
Token  target,
list  sentence,
Token  head 
)
Count how many barriers are between token target and head if any.

◆ find_context()

def omorfi.disamparsulate.evidence.Evidence.find_context (   self,
Token  target,
list  sentence 
)
Traverse sentence to find contexts that match.

◆ in_context()

def omorfi.disamparsulate.evidence.Evidence.in_context (   self,
Token  target,
list  sentence,
Token  head 
)
Check if head is within context and no barrier blocks it.

Does note check if head is valid head, just that it is in context
position.

The documentation for this class was generated from the following file: