|
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) |
|
|
| name |
|
| target |
|
| context |
|
| dispute |
|
| depname |
|
| unlikelihood |
|
◆ __init__()
def omorfi.disamparsulate.evidence.Evidence.__init__ |
( |
|
self | ) |
|
Create a new evidence matching pattern.
◆ 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:
- /home/flammie/github/flammie/omorfi/src/python/omorfi/disamparsulate/evidence.py