pyknp_eventgraph.features

class pyknp_eventgraph.features.Features(event, modality, tense, negation, state, complement, level=None)[source]

Bases: pyknp_eventgraph.component.Component

Features provides linguistic information of an event.

event: Event

An event.

modality: List[str]

A list of modality, a linguistic expression that indicates how a write judges and feels about content. Each of item can take either “意志 (volition),” “勧誘 (invitation),” “命令 (imperative),” “禁止 (prohibition),” “評価:弱 (evaluation: weak),” “評価:強 (evaluation: strong),” “認識-推量 (certainty-subjective),” “認識-蓋然性 (certainty-epistemic),” “認識-証拠 (certainty-evidential),” “依頼A (request-A),” “依頼B (request-B),” and “推量・伝聞 (supposition/hearsay).”

tense: str

The place of an event in a time frame, which can take either “過去 (past)” or “非過去 (non-past).”

negation: bool

If true, this event uses a negative construction.

state: str

A type of a predicate, which can take either “動態述語 (action)” or “状態述語 (state).”

complement: bool

If true, this event modifies an event as a sentential complementizer.

level: str, optional

The semantic heaviness of a predicate.

to_dict()[source]

Convert this object into a dictionary.

Return type

dict

to_string()[source]

Convert this object into a string.

Return type

str