pyknp_eventgraph.predicate

class pyknp_eventgraph.predicate.Predicate(pas, type_, head=None)[source]

Bases: pyknp_eventgraph.component.Component

A predicate is the core of a PAS.

pas: PAS

A PAS that this predicate belongs.

head: :class:`pyknp.knp.tag.Tag`

A head tag.

type_: str

A type of this predicate.

head_base_phrase: Token, optional

A head basic phrase.

to_dict()[source]

Convert this object into a dictionary.

Return type

dict

to_string()[source]

Convert this object into a string.

Return type

str

property adnominal_event_ids

A list of IDs of events modifying this predicate (adnominal).

Return type

List[int]

property children

A list of child words.

Return type

List[dict]

property mrphs

A tokenized string.

Return type

str

property normalized_mrphs

A tokenized/normalized surface string.

Return type

str

property normalized_reps

A normalized representative string.

Return type

str

property normalized_surf

A normalized surface string.

Return type

str

property reps

A representative string.

Return type

str

property sentential_complement_event_ids

A list of IDs of events modifying this predicate (sentential complement).

Return type

List[int]

property standard_reps

A standard representative string.

Return type

str

property surf

A surface string.

Return type

str

property tag

The tag of the head base phrase.

Return type

Optional[Tag]

property type

The type of this predicate.

Return type

str