pyknp_eventgraph.argument

class pyknp_eventgraph.argument.Argument(pas, case, eid, flag, sdist, arg=None)[source]

Bases: pyknp_eventgraph.component.Component

An argument supplements its predicate’s information.

pas: PAS

A PAS that this argument belongs.

case: str

A case.

eid: int

An entity ID.

flag: str

A flag.

sdist: int

The sentence distance between this argument and the predicate.

arg: :class:`pyknp.knp.pas.Argument`, optional

An Argument object in pyknp.

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 head_reps

A head representative string.

Return type

str

property mrphs

A tokenized surface 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 surf

A surface string.

Return type

str

property tag

The tag of the head base phrase.

Return type

Optional[Tag]