pyknp_eventgraph.base_phrase¶
-
class
pyknp_eventgraph.base_phrase.BasePhrase(event, tag, ssid, bid, tid, is_child=False, exophora='', omitted_case='')[source]¶ Bases:
pyknp_eventgraph.component.ComponentA wrapper of
pyknp.knp.tag.Tag, which allow exophora to be a base phrase. BasePhrase is a bidirectional linked list; each of base phrases has its parent and children.-
event: Event¶ An event that has this base phrase.
-
tag: Tag, optional¶ A tag.
-
parent: BasePhrase, optional¶ A parent base phrase.
-
children: List[BasePhrase]¶ A list of child base phrases.
-
modifiees(include_self=False)[source]¶ Return a list of base phrases modified by this base phrase.
- Parameters
include_self (
bool) – If true, include this base phrase to the return.- Return type
-
modifiers(include_self=False)[source]¶ Return a list of base phrases modifying this base phrase.
- Parameters
include_self (
bool) – If true, include this base phrase to the return.- Return type
-
property
adnominal_events¶ A list of events modifying this predicate (adnominal).
- Return type
-
property
root¶ Return the root of this base phrase.
- Return type
-
property
sentential_complement_events¶ A list of events modifying this predicate (sentential complement).
- Return type
-